Fixed an issue in the module parser causing some imports not to be recognised.

Sun, 10 Feb 2013 14:34:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 10 Feb 2013 14:34:14 +0100
changeset 2396
89475661e400
parent 2392
3376434c2ed6
child 2397
671d0d55e5c8

Fixed an issue in the module parser causing some imports not to be recognised.

Utilities/ModuleParser.py file | annotate | diff | comparison | revisions
--- a/Utilities/ModuleParser.py	Sat Feb 09 13:01:42 2013 +0100
+++ b/Utilities/ModuleParser.py	Sun Feb 10 14:34:14 2013 +0100
@@ -164,12 +164,12 @@
     )
 
 |   (?P<Import>
-        ^ (?: import | from [ \t]+ \. [ \t]+ import ) [ \t]+
+        ^ [ \t]* (?: import | from [ \t]+ \. [ \t]+ import ) [ \t]+
         (?P<ImportList> (?: [^#;\\\n]+ (?: \\\n )* )* )
     )
 
 |   (?P<ImportFrom>
-        ^ from [ \t]+
+        ^ [ \t]* from [ \t]+
         (?P<ImportFromPath>
             \.* \w+
             (?:

eric ide

mercurial