~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-18 12:46:49 UTC
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@samba.org-20111218124649-nf7i69ocg3k2roz3
Import absolute_import in a few places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
 
17
from __future__ import absolute_import
 
18
 
17
19
import errno
18
20
import os
19
21
import re
2329
2331
    def getchar():
2330
2332
        return msvcrt.getch()
2331
2333
else:
 
2334
    lazy_import(globals(), """
2332
2335
    import tty
2333
2336
    import termios
 
2337
    """)
2334
2338
    def getchar():
2335
2339
        fd = sys.stdin.fileno()
2336
2340
        settings = termios.tcgetattr(fd)