~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to userinteractor.py

  • Committer: Aaron Bentley
  • Date: 2007-02-15 18:06:43 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070215180643-v1dxrpumwghryi9r
Fix change dectection for dirstate

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