##// END OF EJS Templates
import-checker: increase portability for python 2.6.x...
FUJIWARA Katsunori -
r29374:7712fcde default
parent child Browse files
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 None when relative imports are used.
145 if name is None:
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