Skip to content

Commit 213585f

Browse files
committed
CLN: remove timetuple type check
1 parent cc977f0 commit 213585f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/source/whatsnew/v0.20.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Bug Fixes
602602
- Bug in ``pd.merge_asof()`` where ``left_index``/``right_index`` together caused a failure when ``tolerance`` was specified (:issue:`15135`)
603603

604604

605-
605+
- Bug in ``pd.read_hdf()`` passing a ``Timestamp`` to the ``where`` parameter with a non date column (:issue:`15492`)
606606

607607

608608
- Bug in ``Series`` constructor when both ``copy=True`` and ``dtype`` arguments are provided (:issue:`15125`)

pandas/computation/pytables.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,8 @@ def parse_back_compat(self, w, op=None, value=None):
554554

555555
# stringify with quotes these values
556556
def convert(v):
557-
if (isinstance(v, (datetime, np.datetime64,
558-
timedelta, np.timedelta64)) or
559-
hasattr(v, 'timetuple')):
557+
if isinstance(v, (datetime, np.datetime64,
558+
timedelta, np.timedelta64)):
560559
return "'{0}'".format(v)
561560
return v
562561

0 commit comments

Comments
 (0)