[pypy-svn] r16087 - pypy/dist/pypy/translator/goal
pedronis at codespeak.net
pedronis at codespeak.net
Mon Aug 15 22:09:03 CEST 2005
Author: pedronis
Date: Mon Aug 15 22:09:02 2005
New Revision: 16087
Modified:
pypy/dist/pypy/translator/goal/richards.py
Log:
make classes explicitly new-style
Modified: pypy/dist/pypy/translator/goal/richards.py
==============================================================================
--- pypy/dist/pypy/translator/goal/richards.py (original)
+++ pypy/dist/pypy/translator/goal/richards.py Mon Aug 15 22:09:02 2005
@@ -25,7 +25,7 @@
BUFSIZE_RANGE = range(BUFSIZE)
-class Packet:
+class Packet(object):
def __init__(self,l,i,k):
self.link = l
self.ident = i
@@ -48,7 +48,7 @@
# Task Records
-class TaskRec:
+class TaskRec(object):
pass
class DeviceTaskRec(TaskRec):
@@ -79,7 +79,7 @@
self.count = 0
# Task
-class TaskState:
+class TaskState(object):
def __init__(self):
self.packet_pending = True
self.task_waiting = False
@@ -142,7 +142,7 @@
TASKTABSIZE = 10
-class TaskWorkArea:
+class TaskWorkArea(object):
def __init__(self):
self.taskTab = [None] * TASKTABSIZE
@@ -359,7 +359,7 @@
if tracing: trace(chr(ord("0")+t.ident))
t = t.runTask()
-class Richards:
+class Richards(object):
iterations = 10
More information about the Pypy-commit
mailing list