Skip to content

Commit a4c9465

Browse files
use some more nice relative imports
1 parent 900c4ee commit a4c9465

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pyrepl/unix_console.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
import termios, select, os, struct, errno
2323
import signal, re, time, sys
2424
from fcntl import ioctl
25-
from pyrepl import curses
26-
from pyrepl.fancy_termios import tcgetattr, tcsetattr
27-
from pyrepl.console import Console, Event
28-
from pyrepl import unix_eventqueue
25+
from . import curses
26+
from .fancy_termios import tcgetattr, tcsetattr
27+
from .console import Console, Event
28+
from .unix_eventqueue import EventQueue
2929

3030
class InvalidTerminal(RuntimeError):
3131
pass
@@ -98,6 +98,7 @@ def __init__(self, f_in=0, f_out=1, term=None, encoding=None):
9898
else:
9999
self.output_fd = f_out.fileno()
100100

101+
101102
self.pollob = poll()
102103
self.pollob.register(self.input_fd, POLLIN)
103104
curses.setupterm(term, self.output_fd)
@@ -161,7 +162,7 @@ def __init__(self, f_in=0, f_out=1, term=None, encoding=None):
161162

162163
self.__move = self.__move_short
163164

164-
self.event_queue = unix_eventqueue.EventQueue(self.input_fd)
165+
self.event_queue = EventQueue(self.input_fd)
165166
self.partial_char = b''
166167
self.cursor_visible = 1
167168

0 commit comments

Comments
 (0)