summaryrefslogtreecommitdiffstats
path: root/Demo/sgi
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-08 15:24:48 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-08 15:24:48 (GMT)
commit9c2c1e88a352c947eac2c9eb8b91908f1b5abaad (patch)
tree1409948b07587c6bdecd570b5e41e2eb36d86da1 /Demo/sgi
parent215193bd93f898b21ed75befd412095d99dee601 (diff)
downloadcpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.zip
cpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.tar.gz
cpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.tar.bz2
Fix multi-arg list.append() calls.
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-xDemo/sgi/gl/mclock.py4
-rwxr-xr-xDemo/sgi/video/VFile.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sgi/gl/mclock.py b/Demo/sgi/gl/mclock.py
index b1dfa1b..6af01ba 100755
--- a/Demo/sgi/gl/mclock.py
+++ b/Demo/sgi/gl/mclock.py
@@ -348,7 +348,7 @@ def makesublist(first, icolor):
for i in range(Gl.nparts):
angle = (a + i*alpha + FULLC) % FULLC
value = 255*(Gl.nparts-1-i)/(Gl.nparts-1)
- list.append(angle, icolor, value)
+ list.append((angle, icolor, value))
list.sort()
a, icolor, value = list[0]
if a <> 0:
@@ -416,7 +416,7 @@ def render(list, (little_hand, big_hand, seconds_hand)):
Gl.c3i((255, 255, 255)) # White
circf(0.0, 0.0, 1.0)
else:
- list.append(3600, 0, 255) # Sentinel
+ list.append((3600, 0, 255)) # Sentinel
#
rgb = [255, 255, 255]
a_prev = 0
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index d6c9fc4..f588f4b 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -590,7 +590,7 @@ class Displayer(VideoParams):
r, g, b = int(rv*255.0), \
int(gv*255.0), \
int(bv*255.0)
- map.append(index, r, g, b)
+ map.append((index, r, g, b))
if self.color0 == None:
self.color0 = \
index, r, g, b
@@ -1034,7 +1034,7 @@ class RandomVinFile(BasicVinFile):
rv = BasicVinFile.getnextframeheader(self)
if self.canseek:
pos = self.fp.tell()
- self.index.append(rv, pos)
+ self.index.append((rv, pos))
return rv
def getrandomframe(self, i):