diff options
author | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com> | 2018-10-24 22:43:39 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-24 22:43:39 (GMT) |
commit | 9f270a24237ce562c327af5d187fad72b735e9d2 (patch) | |
tree | 25ceaf45b15b47e6d4cea3299cbf2b10b8142323 /Lib/turtledemo/penrose.py | |
parent | 9f43fbbd9dfc78125c9533ce1dfe33ff5d15aa45 (diff) | |
download | cpython-9f270a24237ce562c327af5d187fad72b735e9d2.zip cpython-9f270a24237ce562c327af5d187fad72b735e9d2.tar.gz cpython-9f270a24237ce562c327af5d187fad72b735e9d2.tar.bz2 |
turtledemo/penrose.py: remove unused clock() calls (GH-10033)
Actually time calculations were remove in commit 891a1f8.
Diffstat (limited to 'Lib/turtledemo/penrose.py')
-rwxr-xr-x | Lib/turtledemo/penrose.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py index e118d6a..045722a 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)) |