Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meold committed Jun 5, 2018
1 parent e22a854 commit db2aac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/ccxt/base/exchange.py
Expand Up @@ -665,7 +665,7 @@ def microseconds():
return int(time.time() * 1000000)

@staticmethod
def iso8601(timestamp = None):
def iso8601(timestamp=None):
if timestamp is None:
return timestamp
if not isinstance(timestamp, int):
Expand Down Expand Up @@ -695,7 +695,7 @@ def ymdhms(timestamp, infix=' '):
return utc_datetime.strftime('%Y-%m-%d' + infix + '%H:%M:%S')

@staticmethod
def parse_date(timestamp = None):
def parse_date(timestamp=None):
if timestamp is None:
return timestamp
if not isinstance(timestamp, str):
Expand All @@ -711,7 +711,7 @@ def parse_date(timestamp = None):
return Exchange.parse8601(timestamp)

@staticmethod
def parse8601(timestamp = None):
def parse8601(timestamp=None):
if timestamp is None:
return timestamp
if not isinstance(timestamp, str):
Expand Down
3 changes: 2 additions & 1 deletion python/test/test_exchange_datetime_functions.py
Expand Up @@ -10,10 +10,11 @@

# ------------------------------------------------------------------------------

import ccxt
import ccxt # noqa: E402

# ------------------------------------------------------------------------------


exchange = ccxt.Exchange()

class TestExchange(TestCase):
Expand Down

0 comments on commit db2aac4

Please sign in to comment.