Skip to content

Commit d37e665

Browse files
committed
use len instead of str.__len__ or things will break as we use unicode now
1 parent 1577962 commit d37e665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ def strbase(self, l):
13831383
elif len(l) == 1:
13841384
return l[0]
13851385

1386-
sl = sorted(l, key=str.__len__)
1386+
sl = sorted(l, key=len)
13871387
for i, c in enumerate(l[-1]):
13881388
# I hate myself. Please email seamusmb@gmail.com to call him a dickhead for
13891389
# insisting that I make bpython 2.4-compatible. I couldn't be bothered

0 commit comments

Comments
 (0)