ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/build_utils/copyright.py
(Generate patch)

Comparing ray/build_utils/copyright.py (file contents):
Revision 1.2 by schorsch, Fri Dec 12 15:48:31 2003 UTC vs.
Revision 1.3 by schorsch, Mon Jan 8 13:38:37 2018 UTC

# Line 1 | Line 1
1 + from __future__ import division, print_function, unicode_literals
2  
3   import os
4   import sys
5 < import string
5 > import builtins
6 > if hasattr(builtins, 'raw_input'): # < Py3
7 >        input = builtins.raw_input
8  
9  
10   def _get_ltextl():
# Line 25 | Line 28 | def _show_ltextl(ltextl, lines=23):
28          for i in range(0, llen, lines):
29                  sys.stderr.write('\n'.join(ltextl[i:i+lines]))
30                  if i+lines < llen:
31 <                        raw_input('\n[press <return> to continue] ')
31 >                        input('\n[press <return> to continue] ')
32  
33   def show_license():
34          try:
# Line 37 | Line 40 | def show_license():
40                  s =  'Please enter "yes" or "no", or use ^C to exit: '
41                  while answer not in ['y', 'ye', 'yes', 'n', 'no']:
42                          if answer: sys.stderr.write('invalid input "%s"\n' % answer)
43 <                        answer = string.lower(raw_input(s))
43 >                        answer = input(s).lower()
44  
45                  if answer[0] == 'y':
46                          return
# Line 47 | Line 50 | def show_license():
50          except KeyboardInterrupt:
51                  sys.stderr.write('\n*** Installation cancelled ***\n')
52                  sys.exit(1)
53 +
54 + # vi: set ts=4 sw=4 :
55  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines