Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix pep8 issues.

  • Loading branch information...
commit c16a56f47292190f1c5e83618e893d3ea459bea3 1 parent 48261cc
@willkg willkg authored
View
1  fjord/base/browsers.py
@@ -95,4 +95,3 @@ def parse_ua(ua):
return Browser(browser, browser_version, platform, platform_version,
mobile)
-
View
3  fjord/base/tests/test__util.py
@@ -46,7 +46,8 @@ def test_fallback(self):
eq_('Hullaballo', smart_datetime('', fallback='Hullaballo'))
def test_format(self):
- eq_(datetime(2012, 9, 28), smart_datetime('9/28/2012', format='%m/%d/%Y'))
+ eq_(datetime(2012, 9, 28),
+ smart_datetime('9/28/2012', format='%m/%d/%Y'))
def test_null_bytes(self):
# strptime likes to barf on null bytes in strings, so test it.
View
4 fjord/base/util.py
@@ -39,7 +39,8 @@ def smart_datetime(s, format='%Y-%m-%d', fallback=None):
different than ``smart_int`` in this way.
:arg s: The string to convert to a date.
- :arg format: Format to use to parse the string into a date. Default: ``'%Y-%m-%d'``.
+ :arg format: Format to use to parse the string into a date.
+ Default: ``'%Y-%m-%d'``.
:arg fallback: Value to use in case of an error. Default: ``None``.
"""
@@ -47,4 +48,3 @@ def smart_datetime(s, format='%Y-%m-%d', fallback=None):
return datetime.strptime(s, format)
except (ValueError, TypeError):
return fallback
-
View
1  fjord/search/index.py
@@ -376,4 +376,3 @@ def es_status_cmd(checkindex=False):
log.info(' Index (%s):', get_index())
for name, count in mt_stats.items():
log.info(' %-20s: %d', name, count)
-
Please sign in to comment.
Something went wrong with that request. Please try again.