зеркало из https://github.com/microsoft/NimbusML.git
Removed if __name__ and main() statements
This commit is contained in:
Родитель
dd6c75c37a
Коммит
ba2742fa81
|
@ -33,13 +33,3 @@ def changeUrls(pathToReportCsv, pathToRootDirectory):
|
|||
print("Altered {} in file: {}".format(row[0], absolutePath))
|
||||
line_count += 1
|
||||
print(f'Processed {line_count} URLs.')
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 3:
|
||||
print("Usage: python3 changeHttpURLsToHttps.py [PATH_TO_Report_FindHttpURLs.txt] [PATH_TO_ORIGINAL_NIMBUSML_DIRECTORY]")
|
||||
exit(1)
|
||||
changeUrls(sys.argv[1], sys.argv[2])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -90,11 +90,3 @@ def makeReports(alterableUrlsStore, nonAlterableUrlsStore, invalidUrlsStore):
|
|||
writer3.writerow([urlKey, fileValue])
|
||||
return
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python3 findHttpURLs.py [PATH_TO_NimbusML_REPOSITORY]")
|
||||
exit(1)
|
||||
findHttpUrls(sys.argv[1])
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Загрузка…
Ссылка в новой задаче