~ubuntu-branches/ubuntu/wily/pep8-naming/wily

« back to all changes in this revision

Viewing changes to pep8ext_naming.py

  • Committer: Package Import Robot
  • Author(s): Daniel Stender
  • Date: 2015-07-01 10:49:42 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150701104942-hncsuuhy3u3w8jjl
Tags: 0.3.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
except ImportError:
11
11
    from flake8.util import ast, iter_child_nodes
12
12
 
13
 
__version__ = '0.3.2'
 
13
__version__ = '0.3.3'
14
14
 
15
15
LOWERCASE_REGEX = re.compile(r'[_a-z][_a-z0-9]*$')
16
16
UPPERCASE_REGEX = re.compile(r'[_A-Z][_A-Z0-9]*$')
17
17
MIXEDCASE_REGEX = re.compile(r'_?[A-Z][a-zA-Z0-9]*$')
 
18
SPLIT_IGNORED_RE = re.compile(r'[,\s]')
18
19
 
19
20
 
20
21
if sys.version_info[0] < 3:
78
79
 
79
80
    @classmethod
80
81
    def parse_options(cls, options):
81
 
        cls.ignore_names = options.ignore_names.split(', ')
 
82
        cls.ignore_names = SPLIT_IGNORED_RE.split(options.ignore_names)
82
83
 
83
84
    def run(self):
84
85
        return self.visit_tree(self._node) if self._node else ()