Improve wrong pin error message

This commit is contained in:
Otto Winter
2018-06-06 08:55:53 +02:00
parent 8a509c6551
commit 0c77228421
15 changed files with 47 additions and 32 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ class MockObj(Expression):
obj.requires.append(self)
return obj
next_op = u'.'
if attr.startswith(u'P') and self.op != '::':
if attr.startswith(u'P') and self.op not in ['::', '']:
attr = attr[1:]
next_op = u'->'
if attr.startswith(u'_'):