-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: refactoringinternal improvements to the codeinternal improvements to the code
Description
Now that the master branch only has to be compatible with Python 3.5+, we can simplify the following code because inspect.unwrap was added in 3.4:
Lines 367 to 370 in cf27af7
| real_unwrap = getattr(inspect, "unwrap", None) | |
| if real_unwrap is None: | |
| yield | |
| else: |
So we can just use real_unwrap = inspect.unwrap, and unconditionally run the else: block. This is a good issue for a first-time contributor!
nicoddemus and AmirElkess
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: refactoringinternal improvements to the codeinternal improvements to the code