pytty
changeset 4:f171e8fc465f
change iobase to a private variable (just for inheritance purposes)
| author | Arc Riley <arcriley@gmail.com> |
|---|---|
| date | Fri, 05 Nov 2010 02:09:05 -0400 |
| parents | 299b8d005ff5 |
| children | ada8adf1ebe2 |
| files | src/__init__.py |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/src/__init__.py Fri Nov 05 01:57:48 2010 -0400 1.2 +++ b/src/__init__.py Fri Nov 05 02:09:05 2010 -0400 1.3 @@ -30,13 +30,13 @@ 1.4 to tty devices. 1.5 ''' 1.6 1.7 - iobase = io.FileIO 1.8 + _iobase = io.FileIO 1.9 1.10 def __init__ (self, name) : 1.11 from fcntl import fcntl, F_SETFL, F_GETFL 1.12 from os import O_NONBLOCK 1.13 1.14 - reader = self.iobase(name, 'r') 1.15 + reader = self._iobase(name, 'r') 1.16 1.17 # ensure this is actually a tty device 1.18 if not reader.isatty() : 1.19 @@ -47,7 +47,7 @@ 1.20 fcntl(fd, F_SETFL, (fcntl(fd, F_GETFL) | O_NONBLOCK)) 1.21 1.22 # open a separate writer device 1.23 - writer = self.iobase(name, 'w') 1.24 + writer = self._iobase(name, 'w') 1.25 1.26 # set non-blocking mode on the reader 1.27 fd = reader.fileno()
