Utilities/ClassBrowsers/pyclbr.py

changeset 4435
9f6555d3c3c0
parent 4183
856ba07de877
child 4461
3634459f8011
equal deleted inserted replaced
4434:8ba11cf46483 4435:9f6555d3c3c0
126 (?: [^#;\\\n]* (?: \\\n )* )* ) 126 (?: [^#;\\\n]* (?: \\\n )* )* )
127 ) 127 )
128 128
129 | (?P<CodingLine> 129 | (?P<CodingLine>
130 ^ \# \s* [*_-]* \s* coding[:=] \s* (?P<Coding> [-\w_.]+ ) \s* [*_-]* $ 130 ^ \# \s* [*_-]* \s* coding[:=] \s* (?P<Coding> [-\w_.]+ ) \s* [*_-]* $
131 ) 131 )""",
132 """, re.VERBOSE | re.DOTALL | re.MULTILINE).search # __IGNORE_WARNING__ 132 re.VERBOSE | re.DOTALL | re.MULTILINE).search
133 133
134 _commentsub = re.compile(r"""#[^\n]*\n|#[^\n]*$""").sub 134 _commentsub = re.compile(r"""#[^\n]*\n|#[^\n]*$""").sub
135 135
136 _modules = {} # cache of modules we've seen 136 _modules = {} # cache of modules we've seen
137 137

eric ide

mercurial