]> granicus.if.org Git - python/commitdiff
turtledemo/penrose.py: remove unused clock() calls (GH-10033)
authorSrinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Wed, 24 Oct 2018 22:43:39 +0000 (04:13 +0530)
committerVictor Stinner <vstinner@redhat.com>
Wed, 24 Oct 2018 22:43:39 +0000 (00:43 +0200)
Actually time calculations were remove in commit 891a1f8.

Lib/turtledemo/penrose.py

index e118d6a75e99e4fd2752294b7d979eb5a8cef9cb..045722a2286061eb9cb22e1e245f0164fc665afc 100755 (executable)
@@ -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))