[Python-checkins] turtledemo/penrose.py: remove unused clock() calls (GH-10033)
Victor Stinner
webhook-mailer at python.org
Wed Oct 24 18:43:43 EDT 2018
https://github.com/python/cpython/commit/9f270a24237ce562c327af5d187fad72b735e9d2
commit: 9f270a24237ce562c327af5d187fad72b735e9d2
branch: master
author: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2018-10-25T00:43:39+02:00
summary:
turtledemo/penrose.py: remove unused clock() calls (GH-10033)
Actually time calculations were remove in commit 891a1f8.
files:
M Lib/turtledemo/penrose.py
diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py
index e118d6a75e99..045722a22860 100755
--- a/Lib/turtledemo/penrose.py
+++ b/Lib/turtledemo/penrose.py
@@ -137,13 +137,10 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2):
goto(startpos)
setheading(0)
tiledict = {}
- a = clock()
tracer(0)
fun(l, n)
- b = clock()
draw(l, n, th)
tracer(1)
- c = clock()
nk = len([x for x in tiledict if tiledict[x]])
nd = len([x for x in tiledict if not tiledict[x]])
print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
More information about the Python-checkins
mailing list