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