File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ Bug Fixes
4242
4343
4444- Compat with python 3.6 for pickling of some offsets (:issue:`14685`)
45- - Compat with python 3.6 for some indexing exception types (:issue:`14684`)
45+ - Compat with python 3.6 for some indexing exception types (:issue:`14684`, :issue:`14689` )
4646- Compat with python 3.6 for deprecation warnings in the test suite (:issue:`14681`)
47+ - Compat with python 3.6 for Timestamp pickles (:issue:`14689`)
4748
4849
4950
Original file line number Diff line number Diff line change @@ -1105,6 +1105,12 @@ cdef class _Timestamp(datetime):
11051105 self ._assert_tzawareness_compat(other)
11061106 return _cmp_scalar(self .value, ots.value, op)
11071107
1108+ def __reduce_ex__ (self , protocol ):
1109+ # python 3.6 compat
1110+ # http://bugs.python.org/issue28730
1111+ # now __reduce_ex__ is defined and higher priority than __reduce__
1112+ return self .__reduce__()
1113+
11081114 def __repr__ (self ):
11091115 stamp = self ._repr_base
11101116 zone = None
Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ def _is_unorderable_exception(e):
196196 These are different error message for PY>=3<=3.5 and PY>=3.6
197197 """
198198 if PY36 :
199- return ( "'>' not supported between instances "
200- "of 'str' and 'int'" in str ( e ))
199+ return "'>' not supported between instances of" in str ( e )
200+
201201 elif PY3 :
202202 return 'unorderable' in str (e )
203203 return False
You can’t perform that action at this time.
0 commit comments