diff --git a/rtc_tools/testing/utils.py b/rtc_tools/testing/utils.py index 8e50e58a5c..7968dad62b 100755 --- a/rtc_tools/testing/utils.py +++ b/rtc_tools/testing/utils.py @@ -76,7 +76,7 @@ def RemoveDirectory(*path): if sys.platform == 'win32': # Give up and use cmd.exe's rd command. file_path = os.path.normcase(file_path) - for _ in xrange(3): + for _ in range(3): print('RemoveDirectory running %s' % (' '.join( ['cmd.exe', '/c', 'rd', '/q', '/s', file_path]))) if not subprocess.call(['cmd.exe', '/c', 'rd', '/q', '/s', file_path]):