File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 168
168
169
169
import sc2reader
170
170
171
+ try :
172
+ raw_input # Python 3
173
+ except NameError :
174
+ raw_input = input # Python 3
175
+
171
176
172
177
def run (args ):
173
178
#Reset wipes the destination clean so we can start over.
@@ -367,12 +372,12 @@ def reset(args):
367
372
elif not os .path .isdir (args .dest ):
368
373
exit ("Cannot reset, destination must be directory: {0}" , args .dest )
369
374
370
- print 'About to reset directory: {0}\n All files and subdirectories will be removed.' .format (args .dest )
375
+ print ( 'About to reset directory: {0}\n All files and subdirectories will be removed.' .format (args .dest ) )
371
376
choice = raw_input ('Proceed anyway? (y/n) ' )
372
377
if choice .lower () == 'y' :
373
378
args .log .write ('Removing old directory: {0}\n ' .format (args .dest ))
374
379
if not args .dryrun :
375
- print args .dest
380
+ print ( args .dest )
376
381
shutil .rmtree (args .dest )
377
382
else :
378
383
sys .exit ("Script Aborted" )
@@ -511,7 +516,7 @@ def main():
511
516
try :
512
517
run (parser .parse_args ())
513
518
except KeyboardInterrupt :
514
- print "\n \n Script Interupted. Process Aborting"
519
+ print ( "\n \n Script Interupted. Process Aborting" )
515
520
516
521
if __name__ == '__main__' :
517
522
main ()
You can’t perform that action at this time.
0 commit comments