svgui/pyjs/build.py
changeset 2418 5587c490a070
parent 1853 47a3f39bead0
child 2431 6923074540dd
--- a/svgui/pyjs/build.py	Tue Oct 02 17:18:09 2018 +0300
+++ b/svgui/pyjs/build.py	Tue Oct 02 18:08:49 2018 +0300
@@ -99,7 +99,7 @@
                 copytree_exists(srcname, dstname, symlinks)
             else:
                 shutil.copy2(srcname, dstname)
-        except (IOError, os.error), why:
+        except (IOError, os.error) as why:
             errors.append((srcname, dstname, why))
     if errors:
         print(errors)
@@ -184,7 +184,7 @@
         try:
             print("Creating output directory")
             os.mkdir(output)
-        except StandardError, e:
+        except StandardError as e:
             print("Exception creating output directory %s: %s" % (output, e), file=sys.stderr)
 
     # public dir