Skip to content

Commit 918918a

Browse files
committed
Fix pragma checks.
1 parent 996ec0c commit 918918a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

toolz/_signatures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def _has_varargs(func):
742742
checks = [check_varargs(sig) for sig in sigs]
743743
if all(checks):
744744
return True
745-
elif any(checks): # pragma: py2 no cover
745+
elif any(checks):
746746
return None
747747
return False
748748

toolz/functoolz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,14 @@ def __reduce__(self):
346346
func = self.func
347347
modname = getattr(func, '__module__', None)
348348
qualname = getattr(func, '__qualname__', None)
349-
if qualname is None: # pragma: py3 no cover
349+
if qualname is None: # pragma: no cover
350350
qualname = getattr(func, '__name__', None)
351351
is_decorated = None
352352
if modname and qualname:
353353
attrs = []
354354
obj = import_module(modname)
355355
for attr in qualname.split('.'):
356-
if isinstance(obj, curry): # pragma: py2 no cover
356+
if isinstance(obj, curry):
357357
attrs.append('func')
358358
obj = obj.func
359359
obj = getattr(obj, attr, None)

0 commit comments

Comments
 (0)