From 2b7faaeb8a1f2b97d4ad4de68b7a32c194254d22 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Tue, 17 May 2016 10:53:44 -0600 Subject: [PATCH] Coding standard changes --- geomagio/Controller.py | 3 ++- geomagio/edge/LocationCode.py | 3 ++- geomagio/iaga2002/IAGA2002Writer.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/geomagio/Controller.py b/geomagio/Controller.py index f84006bb8..a698279ea 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -569,7 +569,8 @@ def parse_args(args): help='EDGE location code, e.g. "R0", "R1"', type=edge.LocationCode) parser.add_argument('--outlocationcode', - help='EDGE output location code (when different from --locationcode)', + help='EDGE output location code' + ' (if different from --locationcode)', type=edge.LocationCode) parser.add_argument('--interval', default='minute', diff --git a/geomagio/edge/LocationCode.py b/geomagio/edge/LocationCode.py index c4eefa949..aa5168eb8 100644 --- a/geomagio/edge/LocationCode.py +++ b/geomagio/edge/LocationCode.py @@ -28,4 +28,5 @@ def LocationCode(code): try: return re.match('^[A-Z0-9]{2}$', code).group(0) except: - raise argparse.ArgumentTypeError('Invalid location code, expected /^[A-Z0-9]{2}$/') + raise argparse.ArgumentTypeError( + 'Invalid location code, expected /^[A-Z0-9]{2}$/') diff --git a/geomagio/iaga2002/IAGA2002Writer.py b/geomagio/iaga2002/IAGA2002Writer.py index decb59233..10cec07de 100644 --- a/geomagio/iaga2002/IAGA2002Writer.py +++ b/geomagio/iaga2002/IAGA2002Writer.py @@ -118,7 +118,8 @@ class IAGA2002Writer(object): ' INTERMAGNET DVD.') comments.append('Go to www.intermagnet.org for details on' + ' obtaining this product.') - if 'conditions_of_use' in stats and stats.conditions_of_use is not None: + if 'conditions_of_use' in stats and \ + stats.conditions_of_use is not None: comments.append('CONDITIONS OF USE: ' + stats.conditions_of_use) # generate comment output buf = [] -- GitLab