python3 support: pylint, W1611 # (standarderror-builtin) StandardError built-in referenced
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 11 Oct 2018 12:09:04 +0300
changeset 2451 6d1bf321fb89
parent 2450 5024c19ca8f0
child 2452 2f2b2152580f
python3 support: pylint, W1611 # (standarderror-builtin) StandardError built-in referenced
svgui/pyjs/build.py
tests/tools/check_source.sh
--- a/svgui/pyjs/build.py	Thu Oct 11 12:00:40 2018 +0300
+++ b/svgui/pyjs/build.py	Thu Oct 11 12:09:04 2018 +0300
@@ -184,7 +184,7 @@
         try:
             print("Creating output directory")
             os.mkdir(output)
-        except StandardError as e:
+        except OSError as e:
             print("Exception creating output directory %s: %s" % (output, e), file=sys.stderr)
 
     # public dir
--- a/tests/tools/check_source.sh	Thu Oct 11 12:00:40 2018 +0300
+++ b/tests/tools/check_source.sh	Thu Oct 11 12:09:04 2018 +0300
@@ -370,6 +370,7 @@
     enable=$enable,W1649          # (deprecated-string-function) Accessing a deprecated function on the string module
     enable=$enable,W1651          # (deprecated-itertools-function) Accessing a deprecated function on the itertools module
     enable=$enable,W1652          # (deprecated-types-field) Accessing a deprecated fields on the types module
+    enable=$enable,W1611          # (standarderror-builtin) StandardError built-in referenced
     # enable=
 
     options=