Explorar o código

Python 3 support

Vladislav Folts %!s(int64=12) %!d(string=hai) anos
pai
achega
cb973162b1
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      browser/linkjs.py

+ 3 - 3
browser/linkjs.py

@@ -32,9 +32,9 @@ def process(path, out, resolved, resolving):
 			if req and not req in resolved:
 				try:
 					resolve_require(req, out, resolved, resolving + [module_name])
-				except Exception, e:
-					print 'while resolving "%s"...' % module_name
-					raise e
+				except Exception:
+					print('while resolving "%s"...' % module_name)
+					raise sys.exc_info()[1]
 			result += l
 	result += '\n})(imports["%s"]);\n' % path
 	out.write(result)