Changed code to not use the OSError aliases (IOError, EnvironmentError, socket.error and select.error) anymore. release-3.1.1

Sun, 22 Nov 2020 16:14:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 22 Nov 2020 16:14:24 +0100
changeset 66
d8a3c6c3bd68
parent 65
2c2f520494df
child 67
0473a0a3b94e

Changed code to not use the OSError aliases (IOError, EnvironmentError, socket.error and select.error) anymore.

ChangeLog file | annotate | diff | comparison | revisions
PluginVulture.py file | annotate | diff | comparison | revisions
PluginVulture.zip file | annotate | diff | comparison | revisions
VultureChecker/VultureCheckerDialog.py file | annotate | diff | comparison | revisions
VultureChecker/vulture/core.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Wed Oct 07 19:35:44 2020 +0200
+++ b/ChangeLog	Sun Nov 22 16:14:24 2020 +0100
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 3.1.1:
+- bug fixes
+
 Version 3.1.0:
 - changed exec_() into exec()
 
--- a/PluginVulture.py	Wed Oct 07 19:35:44 2020 +0200
+++ b/PluginVulture.py	Sun Nov 22 16:14:24 2020 +0100
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "3.1.0"
+version = "3.1.1"
 className = "VulturePlugin"
 packageName = "VultureChecker"
 shortDescription = "Plug-in to detect unused code using the vulture library"
Binary file PluginVulture.zip has changed
--- a/VultureChecker/VultureCheckerDialog.py	Wed Oct 07 19:35:44 2020 +0200
+++ b/VultureChecker/VultureCheckerDialog.py	Sun Nov 22 16:14:24 2020 +0100
@@ -267,7 +267,7 @@
         try:
             self.source = Utilities.readEncodedFile(self.filename)[0]
             self.source = Utilities.normalizeCode(self.source)
-        except (UnicodeError, IOError) as msg:
+        except (UnicodeError, OSError) as msg:
             self.__createErrorItem(self.filename, str(msg).rstrip())
             self.progress += 1
             # Continue with next file
@@ -296,7 +296,7 @@
             try:
                 source = Utilities.readEncodedFile(filename)[0]
                 source = Utilities.normalizeCode(source)
-            except (UnicodeError, IOError) as msg:
+            except (UnicodeError, OSError) as msg:
                 self.__createErrorItem(filename, str(msg).rstrip())
                 continue
             
--- a/VultureChecker/vulture/core.py	Wed Oct 07 19:35:44 2020 +0200
+++ b/VultureChecker/vulture/core.py	Sun Nov 22 16:14:24 2020 +0100
@@ -244,7 +244,7 @@
                 try:
                     module_data = pkgutil.get_data('vulture', path)
                     self._log('Included whitelist:', path)
-                except IOError:
+                except OSError:
                     # Most imported modules don't have a whitelist.
                     continue
                 module_string = module_data.decode("utf-8")

eric ide

mercurial