##// END OF EJS Templates
reformat
Matthias Bussonnier -
Show More
@@ -62,6 +62,7 b' if resource is not None and hasattr(resource, "getrusage"):'
62 Similar to clock(), but return a tuple of user/system times."""
62 Similar to clock(), but return a tuple of user/system times."""
63 return resource.getrusage(resource.RUSAGE_SELF)[:2]
63 return resource.getrusage(resource.RUSAGE_SELF)[:2]
64
64
65
65 else:
66 else:
66 # There is no distinction of user/system time under windows, so we just use
67 # There is no distinction of user/system time under windows, so we just use
67 # time.perff_counter() for everything...
68 # time.perff_counter() for everything...
@@ -103,10 +103,12 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):"
103 # List of things to be updated. Each entry is a triplet of args for
103 # List of things to be updated. Each entry is a triplet of args for
104 # target_update()
104 # target_update()
105 to_update = [
105 to_update = [
106 ('docs/man/ipython.1.gz',
106 (
107 ['docs/man/ipython.1'],
107 "docs/man/ipython.1.gz",
108 'cd docs/man && python -m gzip --best ipython.1'),
108 ["docs/man/ipython.1"],
109 ]
109 "cd docs/man && python -m gzip --best ipython.1",
110 ),
111 ]
110
112
111
113
112 [ target_update(*t) for t in to_update ]
114 [ target_update(*t) for t in to_update ]
General Comments 0
You need to be logged in to leave comments. Login now