re-enable the interpretation of the None keyword
This commit is contained in:
1 parent
469988be9c
commit
fb1dba269a
4 files changed
+6
-7
No files matched your search
@@ -13,7 +13,8 @@ def next(iterator, default=None):
|
||||
else:
|
||||
return iterator.__next__()
|
||||
else:
|
||||
return default
|
||||
if default is not None:
|
||||
return default
|
||||
|
||||
|
||||
def iter(collection, sentinel=None):
|
||||
|
||||
Reference in new issue
Block a user