def _new_Index(cls, d):
<EOL>if issubclass(cls, ABCPeriodIndex):<EOL><INDENT>from pandas.core.indexes.period import _new_PeriodIndex<EOL>return _new_PeriodIndex(cls, **d)<EOL><DEDENT>return cls.__new__(cls, **d)<EOL>
This is called upon unpickling, rather than the default which doesn't
have arguments and breaks __new__.