Skip to content

Commit

Permalink
Remove redundant get() None default.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 26, 2017
1 parent 6e094ed commit 8fbfb67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
import six
# The ReadTheDocs build does not include nipype.
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if not on_rtd:
# Disable nipype nipy import FutureWarnings.
import warnings
Expand Down
4 changes: 2 additions & 2 deletions qipipe/qiprofile/pathology.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ def __init__(self, workbook, *classes, **opts):
# The special parsers.
parsers = PARSERS.copy()
# Add the subclass special parsers.
parsers_opt = opts.get('parsers', None)
parsers_opt = opts.get('parsers')
if parsers_opt:
parsers.update(parsers_opt)
# The special column-attribute associations.
col_attrs = COL_ATTRS.copy()
# Add the subclass special associations.
col_attrs_opt = opts.get('column_attributes', None)
col_attrs_opt = opts.get('column_attributes')
if col_attrs_opt:
col_attrs.update(col_attrs_opt)
# Initialize the worksheet.
Expand Down
2 changes: 1 addition & 1 deletion qipipe/qiprofile/xls.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, workbook, sheet, *classes, **opts):
# Every worksheet has a subject number field.
parsers.update(subject_number=int)
# Add the special parsers.
parsers_opt = opts.get('parsers', None)
parsers_opt = opts.get('parsers')
if parsers_opt:
parsers.update(parsers_opt)
self._parsers = parsers
Expand Down

0 comments on commit 8fbfb67

Please sign in to comment.