diff options
Diffstat (limited to 'BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py')
| -rw-r--r-- | BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py b/BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py index dada920..19e5f87 100644 --- a/BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py +++ b/BuildTools/CrashReportAnalysis/WindowsMinidumpAnalyse.py @@ -1,11 +1,11 @@ #!/usr/bin/env python # Note # ---- # This script requires: # - cdb, the Windows command line debugger installed and available in PATH. -# - the SWIFT_DIST environment variable set to a locatioon that contains msi and pdb.gz files. +# - the SWIFT_DIST environment variable set to a location that contains msi and pdb.gz files. import sys from subprocess import call from subprocess import Popen, PIPE import ntpath @@ -17,15 +17,15 @@ import gzip import time swiftWindowBuildsPathPrefix = os.getenv("SWIFT_DIST") if swiftWindowBuildsPathPrefix == None : - print "Please set the SWIFT_DIST environment variable to a location containing msi and pdb.gz files." + print("Please set the SWIFT_DIST environment variable to a location containing msi and pdb.gz files.") sys.exit(1) if len(sys.argv) != 3: - print "Usage: python WindowsMinidumpAnalyse.py VERSION MINIDUMP_FILE" + print("Usage: python WindowsMinidumpAnalyse.py VERSION MINIDUMP_FILE") sys.exit(1) version = sys.argv[1] minidump_file = sys.argv[2] minidump_filename = ntpath.basename(minidump_file) @@ -91,11 +91,11 @@ def printHumanReadableReport(): # for testing, delete the old folder try: shutil.rmtree(working_folder) except: - print "" + print("") # clone local git repository into dedicated directory call(["git", "clone", ".", working_folder], shell=True) # git version from swift version @@ -118,11 +118,11 @@ assert(len(commit) > 0) # Create symbol cache directory if not os.path.exists(symbol_cache_path): os.makedirs(symbol_cache_path) -#print "Checking out commit {0}.".format(commit) +#print("Checking out commit {0}.".format(commit)) call(["git", "-C", working_folder, "checkout", commit]) os.chdir(working_folder) downloadInstaller(version) |
Swift