Skip to content

Commit 222b588

Browse files
committed
Fix name regex in inspection.
This addresses issue bpython#103.
1 parent ea558a5 commit 222b588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/inspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
py3 = sys.version_info[0] == 3
4848

4949
if not py3:
50-
_name = re.compile(r'[a-zA-Z_]\w*')
50+
_name = re.compile(r'[a-zA-Z_]\w*$')
5151

5252

5353
class AttrCleaner(object):

0 commit comments

Comments
 (0)