diff --git a/IPython/utils/timing.py b/IPython/utils/timing.py index 92f6883..32741ac 100644 --- a/IPython/utils/timing.py +++ b/IPython/utils/timing.py @@ -62,6 +62,7 @@ if resource is not None and hasattr(resource, "getrusage"): Similar to clock(), but return a tuple of user/system times.""" return resource.getrusage(resource.RUSAGE_SELF)[:2] + else: # There is no distinction of user/system time under windows, so we just use # time.perff_counter() for everything... diff --git a/setup.py b/setup.py index 141b3d3..4c52f47 100644 --- a/setup.py +++ b/setup.py @@ -103,10 +103,12 @@ if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'): # List of things to be updated. Each entry is a triplet of args for # target_update() to_update = [ - ('docs/man/ipython.1.gz', - ['docs/man/ipython.1'], - 'cd docs/man && python -m gzip --best ipython.1'), - ] + ( + "docs/man/ipython.1.gz", + ["docs/man/ipython.1"], + "cd docs/man && python -m gzip --best ipython.1", + ), + ] [ target_update(*t) for t in to_update ]