mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-20 21:29:21 +00:00
Various small PEP8 cleanups
This commit is contained in:
@@ -12,13 +12,13 @@ class Command(BaseCommand):
|
||||
help = 'Import a list of stores from CSV'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
file = args[0]
|
||||
if file.startswith('http'):
|
||||
self.stdout.write("Downloading %s\n" % file)
|
||||
f = StringIO(requests.get(file).text)
|
||||
fn = args[0]
|
||||
if fn.startswith('http'):
|
||||
self.stdout.write("Downloading %s\n" % fn)
|
||||
f = StringIO(requests.get(fn).text)
|
||||
else:
|
||||
self.stdout.write("Opening file %s\n" % file)
|
||||
f = open(file, 'r')
|
||||
self.stdout.write("Opening file %s\n" % fn)
|
||||
f = open(fn, 'r')
|
||||
|
||||
self.stdout.write('Formatting data...')
|
||||
# Generate the dataset
|
||||
|
||||
Reference in New Issue
Block a user