Fix incorrect result of getmodpath method.

This commit is contained in:
林玮 2019-11-16 14:49:17 +08:00
parent 3a668ea6ff
commit 329f56ecec
3 changed files with 3 additions and 2 deletions

View File

@ -261,6 +261,7 @@ Virgil Dupras
Vitaly Lashmanov Vitaly Lashmanov
Vlad Dragos Vlad Dragos
Volodymyr Piskun Volodymyr Piskun
Wei Lin
Wil Cooley Wil Cooley
William Lee William Lee
Wim Glenn Wim Glenn

View File

@ -0,0 +1 @@
Fix incorrect result of ``getmodpath`` method.

View File

@ -285,8 +285,7 @@ class PyobjMixin(PyobjContext):
break break
parts.append(name) parts.append(name)
parts.reverse() parts.reverse()
s = ".".join(parts) return ".".join(parts)
return s.replace(".[", "[")
def reportinfo(self): def reportinfo(self):
# XXX caching? # XXX caching?