Show More
@@ -141,8 +141,8 b' def fromlocalfunc(modulename, localmods)' | |||
|
141 | 141 | if prefix: |
|
142 | 142 | prefix += '.' |
|
143 | 143 | def fromlocal(name, level=0): |
|
144 |
# name is |
|
|
145 |
if name |
|
|
144 | # name is false value when relative imports are used. | |
|
145 | if not name: | |
|
146 | 146 | # If relative imports are used, level must not be absolute. |
|
147 | 147 | assert level > 0 |
|
148 | 148 | candidates = ['.'.join(modulename.split('.')[:-level])] |
General Comments 0
You need to be logged in to leave comments.
Login now