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

Appearance settings

Commit a68f08a

Browse filesBrowse files
authored
change second if statement to elif.
1 parent 0078576 commit a68f08a
Copy full SHA for a68f08a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎timer/timer.py‎

Copy file name to clipboardExpand all lines: timer/timer.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_name_length(iterable, length):
8383
name = "" # iterable.__repr__()
8484
if not hasattr(iterable, "__iter__"):
8585
raise TypeError("Object %s not iterable" % name)
86-
if hasattr(iterable, "__len__") and length is None:
86+
elif length is None:
8787
length = iterable.__len__()
8888
return name, length
8989

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.