[pypy-commit] pyrepl py3ksupport: objectify console.py
RonnyPfannschmidt
noreply at buildbot.pypy.org
Wed Oct 19 10:44:49 CEST 2011
Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: py3ksupport
Changeset: r136:5acd791e2f76
Date: 2011-10-19 09:20 +0200
http://bitbucket.org/pypy/pyrepl/changeset/5acd791e2f76/
Log: objectify console.py
diff --git a/pyrepl/console.py b/pyrepl/console.py
--- a/pyrepl/console.py
+++ b/pyrepl/console.py
@@ -17,8 +17,9 @@
# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-class Event:
+class Event(object):
"""An Event. `evt' is 'key' or somesuch."""
+ __slots__ = 'evt', 'data', 'raw'
def __init__(self, evt, data, raw=''):
self.evt = evt
@@ -28,7 +29,7 @@
def __repr__(self):
return 'Event(%r, %r)'%(self.evt, self.data)
-class Console:
+class Console(object):
"""Attributes:
screen,
More information about the pypy-commit
mailing list