Skip to content

Commit 866dc48

Browse files
author
Chang She
committed
switch to equivalent str_to_bytes in py3compat
1 parent 2d98d16 commit 866dc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def __new__(cls, data=None,
529529
else:
530530
base1, mult1 = _gfc(data.freq)
531531
base2, mult2 = _gfc(freq)
532-
how = 'E'.encode('ascii') # Python 2.5 support
532+
how = py3compat.str_to_bytes('E')
533533
data = lib.period_asfreq_arr(data.values, base1, mult1,
534534
base2, mult2, how)
535535
else:

0 commit comments

Comments
 (0)