diff --git a/pandas/io/data.py b/pandas/io/data.py index 2707fcad6a67b..03ccde6a2fcc1 100644 --- a/pandas/io/data.py +++ b/pandas/io/data.py @@ -877,11 +877,11 @@ def get_near_stock_price(self, above_below=2, call=True, put=False, return chop_put def _try_parse_dates(self, year, month, expiry): - if (year is not None or month is not None): + if year is not None or month is not None: warnings.warn("month, year arguments are deprecated, use expiry instead", FutureWarning) - if (expiry is not None): + if expiry is not None: year=expiry.year month=expiry.month return year, month