summaryrefslogtreecommitdiff
path: root/examples/graph.py
diff options
context:
space:
mode:
authorKenneth Nielsen <k.nielsen81@gmail.com>2015-04-27 08:52:25 +0200
committerKenneth Nielsen <k.nielsen81@gmail.com>2015-04-27 08:52:25 +0200
commitccb5e8c1d9c1cf1baccee0278a5baa9763afbc4b (patch)
treeb46b9a6397c6efd617878524af41af08b6229035 /examples/graph.py
parentf8241644ac897540a5bbad4ef7283d512bab2132 (diff)
downloadurwid-ccb5e8c1d9c1cf1baccee0278a5baa9763afbc4b.tar.gz
Python3 fix in graph example
Diffstat (limited to 'examples/graph.py')
-rwxr-xr-xexamples/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graph.py b/examples/graph.py
index c21c9a9..536fa00 100755
--- a/examples/graph.py
+++ b/examples/graph.py
@@ -48,7 +48,7 @@ class GraphModel:
data_max_value = 100
def __init__(self):
- data = [ ('Saw', range(0,100,2)*2),
+ data = [ ('Saw', list(range(0,100,2))*2),
('Square', [0]*30 + [100]*30),
('Sine 1', [sin100(x) for x in range(100)] ),
('Sine 2', [(sin100(x) + sin100(x*2))/2