Skip to content

Commit

Permalink
Fixing pep8 errors #1180
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonje committed Jan 20, 2016
1 parent 0609547 commit 8747fd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions calaccess_raw/management/commands/__init__.py
Expand Up @@ -7,12 +7,12 @@ class CalAccessCommand(BaseCommand):
def add_arguments(self, parser):
# allow any CalAccessCommand to be performed on other apps
parser.add_argument(
"-a",
"--app-name",
dest="app_name",
default="calaccess_raw",
help="Name of Django app where model will be imported from"
)
"-a",
"--app-name",
dest="app_name",
default="calaccess_raw",
help="Name of Django app where model will be imported from"
)

def header(self, string):
self.stdout.write(
Expand Down
8 changes: 4 additions & 4 deletions calaccess_raw/management/commands/downloadcalaccessrawdata.py
Expand Up @@ -118,7 +118,7 @@ def add_arguments(self, parser):
"'default' in DATABASE settings."
)

# all BaseCommand subclasses require a handle() method that includes
# all BaseCommand subclasses require a handle() method that includes
# the actual logic of the command
def handle(self, **options):

Expand All @@ -138,7 +138,7 @@ def handle(self, **options):

if options['test_data']:
self.data_dir = get_test_download_directory()
# need to set this app-wide because cleancalaccessrawfile
# need to set this app-wide because cleancalaccessrawfile
# also calls get_download_directory
settings.CALACCESS_DOWNLOAD_DIR = self.data_dir
else:
Expand Down Expand Up @@ -299,7 +299,7 @@ def download(self):
os.remove(self.zip_path)

# Stream the download
chunk_size=1024
chunk_size = 1024
req = requests.get(self.url, stream=True, headers=headers)
n_iters = float(expected_size) / chunk_size + 1
with open(self.zip_path, 'ab') as fp:
Expand All @@ -317,7 +317,7 @@ def unzip(self):
"""
if self.verbosity:
self.log(" Unzipping archive")

with zipfile.ZipFile(self.zip_path) as zf:
for member in zf.infolist():
words = member.filename.split('/')
Expand Down

0 comments on commit 8747fd1

Please sign in to comment.