Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
fix(style): pep8 flake8 was complaining about builtin-named args
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Jun 8, 2018
1 parent 13daf83 commit 05f87a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycallgraph/output/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def debug(self, text):
self.processor.config.log_debug(text)

@classmethod
def add_output_file(cls, subparser, defaults, help):
def add_output_file(cls, subparser, defaults, help): # noqa: A002
subparser.add_argument(
'-o', '--output-file', type=str, default=defaults.output_file,
help=help,
Expand Down
2 changes: 1 addition & 1 deletion pycallgraph/pycallgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, output=None, config=None):
def __enter__(self):
self.start()

def __exit__(self, type, value, traceback):
def __exit__(self, type, value, traceback): # noqa: A002
self.done()

def get_tracer_class(self):
Expand Down
1 change: 1 addition & 0 deletions pycallgraph/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,5 @@ def wrapper(*rest):

return wrapper


inspect.getmodule = simple_memoize(inspect.getmodule)

0 comments on commit 05f87a9

Please sign in to comment.