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

Commit

Permalink
fix(TCs): flake8 complained about examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Jun 8, 2018
1 parent 658bd0c commit 5956ad8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tests:

flake8 --exclude=__init__.py,memory_profiler.py pycallgraph
flake8 --ignore=F403 test
flake8 examples
flake8 examples --exclude=all.py

doc:
cd docs/examples && ./generate.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ def main():
s2 = SubmoduleTwo()
s2.report()


if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions examples/graphviz/recursive.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ def main():
for a in xrange(1, 10):
factorial(a)


if __name__ == '__main__':
main()
4 changes: 2 additions & 2 deletions examples/graphviz/regexp.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def main():
config = Config(include_stdlib=True)

with PyCallGraph(output=graphviz, config=config):
reo = compile()
reo = compile_regex()
match(reo)


def compile():
def compile_regex():
return re.compile('^[abetors]*$')


Expand Down

0 comments on commit 5956ad8

Please sign in to comment.