From d965f5d39370d6bd51d0fb6a53c1a5aec5b14a1c Mon Sep 17 00:00:00 2001 From: tp Date: Wed, 15 May 2019 20:06:20 +0200 Subject: [PATCH] CLN: remove __unicode__ from pyx files --- pandas/_libs/tslibs/period.pyx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 029a64c8d3ba2..c68d686ff2bf2 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2208,10 +2208,6 @@ cdef class _Period: def now(cls, freq=None): return Period(datetime.now(), freq=freq) - # HACK IT UP AND YOU BETTER FIX IT SOON - def __str__(self): - return self.__unicode__() - @property def freqstr(self): return self.freq.freqstr @@ -2221,9 +2217,9 @@ cdef class _Period: formatted = period_format(self.ordinal, base) return "Period('%s', '%s')" % (formatted, self.freqstr) - def __unicode__(self): + def __str__(self): """ - Return a unicode string representation for a particular DataFrame + Return a string representation for a particular DataFrame """ base, mult = get_freq_code(self.freq) formatted = period_format(self.ordinal, base)