We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fba73 commit 4a7dbbeCopy full SHA for 4a7dbbe
pandas/tseries/period.py
@@ -891,7 +891,7 @@ def get_loc(self, key):
891
try:
892
return self._engine.get_loc(key.ordinal)
893
except KeyError as inst:
894
- raise KeyError(repr(key))
+ raise KeyError(key)
895
896
def slice_locs(self, start=None, end=None):
897
"""
pandas/tseries/tests/test_period.py
@@ -1932,7 +1932,7 @@ def test_get_loc_msg(self):
1932
1933
idx.get_loc(bad_period)
1934
1935
- self.assert_(inst.message == repr(bad_period))
+ self.assert_(inst.message == bad_period)
1936
1937
def test_append_concat(self):
1938
# #1815
0 commit comments