[pypy-commit] pyrepl py3ksupport: use some more nice relative imports

RonnyPfannschmidt noreply at buildbot.pypy.org
Sat Apr 28 16:16:39 CEST 2012


Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: py3ksupport
Changeset: r166:4d72d90ca555
Date: 2012-03-24 16:10 +0100
http://bitbucket.org/pypy/pyrepl/changeset/4d72d90ca555/

Log:	use some more nice relative imports

diff --git a/pyrepl/unix_console.py b/pyrepl/unix_console.py
--- a/pyrepl/unix_console.py
+++ b/pyrepl/unix_console.py
@@ -22,10 +22,10 @@
 import termios, select, os, struct, errno
 import signal, re, time, sys
 from fcntl import ioctl
-from pyrepl import curses
-from pyrepl.fancy_termios import tcgetattr, tcsetattr
-from pyrepl.console import Console, Event
-from pyrepl import unix_eventqueue
+from . import curses
+from .fancy_termios import tcgetattr, tcsetattr
+from .console import Console, Event
+from .unix_eventqueue import EventQueue
 
 class InvalidTerminal(RuntimeError):
     pass
@@ -98,6 +98,7 @@
         else:
             self.output_fd = f_out.fileno()
         
+
         self.pollob = poll()
         self.pollob.register(self.input_fd, POLLIN)
         curses.setupterm(term, self.output_fd)
@@ -161,7 +162,7 @@
 
         self.__move = self.__move_short
 
-        self.event_queue = unix_eventqueue.EventQueue(self.input_fd)
+        self.event_queue = EventQueue(self.input_fd)
         self.partial_char = b''
         self.cursor_visible = 1
 


More information about the pypy-commit mailing list