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
Vlad Dragos
Volodymyr Piskun
Wei Lin
Wil Cooley
William Lee
Wim Glenn

View File

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

View File

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