##// END OF EJS Templates
contrib: fix import-checker to not b'' module names on Python 3...
Augie Fackler -
r40514:99d5424e default
parent child Browse files
Show More
@@ -674,6 +674,8 b' def embedded(f, modname, src):'
674 # "starts" is "line number" (1-origin), but embedded() is
674 # "starts" is "line number" (1-origin), but embedded() is
675 # expected to return "line offset" (0-origin). Therefore, this
675 # expected to return "line offset" (0-origin). Therefore, this
676 # yields "starts - 1".
676 # yields "starts - 1".
677 if not isinstance(modname, str):
678 modname = modname.decode('utf8')
677 yield code, "%s[%d]" % (modname, starts), name, starts - 1
679 yield code, "%s[%d]" % (modname, starts), name, starts - 1
678
680
679 def sources(f, modname):
681 def sources(f, modname):
General Comments 0
You need to be logged in to leave comments. Login now