Skip to content

Commit

Permalink
Fix PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam3851 committed Mar 2, 2018
1 parent a8f2ab4 commit cc89cac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pandas/io/packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ def encode(obj):
u'freq': u_safe(obj.freqstr)}
elif isinstance(obj, Interval):
return {u'typ': u'interval',
u'left':obj.left,
u'right':obj.right,
u'closed':obj.closed}
u'left': obj.left,
u'right': obj.right,
u'closed': obj.closed}
elif isinstance(obj, BlockIndex):
return {u'typ': u'block_index',
u'klass': u(obj.__class__.__name__),
Expand Down
8 changes: 4 additions & 4 deletions pandas/tests/io/test_packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,14 @@ def test_timedeltas(self):

def test_periods(self):
# 13463
for i in [Period('2010-09', 'M'), Period('2014-Q1', 'Q')]:
for i in [Period('2010-09', 'M'), Period('2014-Q1', 'Q')]:
i_rec = self.encode_decode(i)
assert i == i_rec

def test_intervals(self):
# 19967
for i in [Interval(0, 1), Interval(0, 1, 'left'),
Interval(10, 25., 'right')]:
Interval(10, 25., 'right')]:
i_rec = self.encode_decode(i)
assert i == i_rec

Expand All @@ -349,8 +349,8 @@ def setup_method(self, method):
'date2': Index(date_range('2013-01-1', periods=10)),
'bdate': Index(bdate_range('2013-01-02', periods=10)),
'cat': tm.makeCategoricalIndex(100),
'interval':tm.makeIntervalIndex(100),
'timedelta':tm.makeTimedeltaIndex(100, 'H')
'interval': tm.makeIntervalIndex(100),
'timedelta': tm.makeTimedeltaIndex(100, 'H')
}

self.mi = {
Expand Down

0 comments on commit cc89cac

Please sign in to comment.