From: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) Date: Wed, 24 Oct 2018 22:43:39 +0000 (+0530) Subject: turtledemo/penrose.py: remove unused clock() calls (GH-10033) X-Git-Tag: v3.8.0a1~689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f270a24237ce562c327af5d187fad72b735e9d2;p=python turtledemo/penrose.py: remove unused clock() calls (GH-10033) Actually time calculations were remove in commit 891a1f8. --- diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py index e118d6a75e..045722a228 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))