fix speling an move to docstring

This commit is contained in:
Matthias Urlichs committed 2019-02-05 17:34:57 +01:00
1 parent e6f902cbe7
commit 72729ad418
1 file changed
+1 -1
+1 -1
View File
@@ -1725,8 +1725,8 @@ def natural_key(text):
return [ int(c) if c.isdigit() else c for c in re.split(r"(\d+)", text) ]
# len(generator) doesn#t work
def count(gen):
"""Used instead of len(generator), which doesn't work"""
n = 0
for _ in gen:
n += 1