Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 5147
d39dd5cee0c8
parent 4631
5c1a96925da4
child 5172
f35c7e0db572
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sun Sep 04 16:50:23 2016 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sun Sep 04 17:16:38 2016 +0200
@@ -10,11 +10,11 @@
 import sys
 import multiprocessing
 
-import pep8
+import pycodestyle
 from NamingStyleChecker import NamingStyleChecker
 
 # register the name checker
-pep8.register_check(NamingStyleChecker, NamingStyleChecker.Codes)
+pycodestyle.register_check(NamingStyleChecker, NamingStyleChecker.Codes)
 
 from DocStyleChecker import DocStyleChecker
 from MiscellaneousChecker import MiscellaneousChecker
@@ -39,7 +39,7 @@
     return codeStyleBatchCheck
 
 
-class CodeStyleCheckerReport(pep8.BaseReport):
+class CodeStyleCheckerReport(pycodestyle.BaseReport):
     """
     Class implementing a special report to be used with our dialog.
     """
@@ -224,7 +224,7 @@
             ignore = []
         
         # check coding style
-        styleGuide = pep8.StyleGuide(
+        styleGuide = pycodestyle.StyleGuide(
             reporter=CodeStyleCheckerReport,
             repeat=repeatMessages,
             select=select,

eric ide

mercurial