Skip to content

Commit f07ab80

Browse files
committed
str, bytes
1 parent 8a8bdb0 commit f07ab80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/dtypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ def construct_from_string(cls, string):
661661
raise TypeError("could not construct PeriodDtype")
662662

663663
def __unicode__(self):
664-
return self.name
664+
return compat.text_type(self.name)
665665

666666
@property
667667
def name(self):
668-
return u"period[{freq}]".format(freq=self.freq.freqstr)
668+
return str("period[{freq}]".format(freq=self.freq.freqstr))
669669

670670
@property
671671
def na_value(self):

0 commit comments

Comments
 (0)