Skip to content

Commit 8da3058

Browse files
authored
Merge pull request #386 from tacaswell/fix_37compat
FIX: compatibility with python3.7
2 parents 8e6a638 + 255c908 commit 8da3058

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ python:
77
- "3.4"
88
- "3.5"
99
- "3.6"
10+
- "3.7-dev"
1011
- "pypy"
1112

1213
env:
1314
- PEP8_IGNORE="E731,W503,E402"
1415

16+
matrix:
17+
allow_failures:
18+
- python: "3.7-dev"
19+
1520
# command to install dependencies
1621
install:
1722
- pip install coverage pep8 pytest

toolz/functoolz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def composed_doc(*fs):
498498
def __name__(self):
499499
try:
500500
return '_of_'.join(
501-
f.__name__ for f in reversed((self.first,) + self.funcs),
501+
f.__name__ for f in reversed((self.first,) + self.funcs)
502502
)
503503
except AttributeError:
504504
return type(self).__name__

toolz/tests/test_inspect_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ def add_blacklist(mod, attr):
402402
blacklist.add(getattr(mod, attr))
403403

404404
add_blacklist(builtins, 'basestring')
405+
add_blacklist(builtins, 'breakpoint')
405406
add_blacklist(builtins, 'NoneType')
406407
add_blacklist(builtins, '__metaclass__')
407408
add_blacklist(builtins, 'sequenceiterator')
@@ -497,4 +498,3 @@ def __wrapped__(self):
497498
assert num_required_args(Wrapped) == (False if PY33 else None)
498499
_sigs.signatures[Wrapped] = (_sigs.expand_sig((0, lambda func: None)),)
499500
assert num_required_args(Wrapped) == 1
500-

0 commit comments

Comments
 (0)