From 4b1012cbb442109299ab7abe37feaba1a2687897 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 7 Apr 2022 01:13:54 +0300 Subject: [PATCH] comment out unused code prior to deletion --- parsers/scans.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/parsers/scans.py b/parsers/scans.py index 9960508..7868c70 100644 --- a/parsers/scans.py +++ b/parsers/scans.py @@ -67,17 +67,17 @@ def get_or_create_placeholder(year): placeholder_logbook_entry, newly_created = save_carefully(LogbookEntry, lookupAttribs, nonLookupAttribs) return placeholder_logbook_entry -def listdir(*directories): - '''WHAT is this ?! Some python2 fossil. The only use of settings.SURVEYS - local import statement to be avoided, please. - ''' - try: - return os.listdir(os.path.join(settings.SURVEYS, *directories)) - except: - import urllib.request, urllib.parse, urllib.error - url = settings.SURVEYS + reduce(lambda x, y: x + "/" + y, ["listdir"] + list(directories)) - folders = urllib.request.urlopen(url.replace("#", "%23")).readlines() - return [folder.rstrip(r"/") for folder in folders] +# def listdir(*directories): + # '''WHAT is this ?! Some python2 fossil. The only use of settings.SURVEYS + # local import statement to be avoided, please. + # ''' + # try: + # return os.listdir(os.path.join(settings.SURVEYS, *directories)) + # except: + # import urllib.request, urllib.parse, urllib.error + # url = settings.SURVEYS + reduce(lambda x, y: x + "/" + y, ["listdir"] + list(directories)) + # folders = urllib.request.urlopen(url.replace("#", "%23")).readlines() + # return [folder.rstrip(r"/") for folder in folders] def LoadListScansFile(wallet): gld = [ ]