-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace functools.wraps with six.wraps
Previously we have been using functools.wraps. However if any decorator that uses functools.wraps is used, some code that relies on __wrapped__ being present, e.g. pytest, will fail on Python2. Switching to six.wraps will solve this problem, as it introduces this change as well and solves the missing __wrapped__ attribute. Signed-off-by: Vinzenz Feenstra <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters