~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 22:09:44 UTC
  • mfrom: (540.1.2 bzrtools-0.17)
  • Revision ID: aaron.bentley@utoronto.ca-20070612220944-5zw4hlzp1ctq6mkl
Merge fixes from 0.17

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
1
import sys
4
2
 
5
3
class UserOption:
134
132
            print '  %s - %s' % (opt.char, opt.help)
135
133
 
136
134
    if sys.platform == "win32":
137
 
        import msvcrt
138
135
        def __getchar(self):
139
 
            return msvcrt.getche()
 
136
            import msvcrt
 
137
            return msvcrt.getch()
140
138
    else:
141
139
        def __getchar(self):
142
140
            import tty