Skip to content

Commit

Permalink
Fix nullcontext backport
Browse files Browse the repository at this point in the history
  • Loading branch information
zmievsa committed Jan 15, 2022
1 parent 429c995 commit 9dcf97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygount/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def new_func2(*args, **kwargs):
raise TypeError(repr(type(reason)))


if sys.version_info.minor < 7:
class nullcontext(contextlib.AbstractContextManager):
if sys.version_info < (3, 7):
class nullcontext(contextlib.AbstractContextManager): # noqa: N801
"""Context manager that does no additional processing.
Used as a stand-in for a normal context manager, when a particular
Expand Down

0 comments on commit 9dcf97d

Please sign in to comment.