Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd37e665

Browse files
committed
use len instead of str.__len__ or things will break as we use unicode now
1 parent1577962 commitd37e665

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
eliflen(l)==1:
13841384
returnl[0]
13851385

1386-
sl=sorted(l,key=str.__len__)
1386+
sl=sorted(l,key=len)
13871387
fori,cinenumerate(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)

[8]ページ先頭

©2009-2026 Movatter.jp