get_related_names testing

This commit is contained in:
David Halter
2012-09-10 00:52:01 +02:00
parent 47262ea45e
commit da3c327af7
6 changed files with 69 additions and 10 deletions

View File

@@ -1093,7 +1093,7 @@ class PyFuzzyParser(object):
if not self.user_position:
return
# the position is right
if simple.start_pos < self.user_position <= simple.end_pos:
if simple.start_pos <= self.user_position <= simple.end_pos:
if self.user_stmt is not None:
# if there is already a user position (another import, because
# imports are splitted) the names are checked.