Skip to content

Commit 6cccb17

Browse files
TomAugspurgerjreback
authored andcommitted
COMPAT: update for latest flake8 (#23363)
1 parent 020782a commit 6cccb17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/groupby/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pandas.core.groupby.groupby import GroupBy # flake8: noqa
2-
from pandas.core.groupby.generic import (
3-
SeriesGroupBy, DataFrameGroupBy, PanelGroupBy) # flake8: noqa
4-
from pandas.core.groupby.grouper import Grouper # flake8: noqa
1+
from pandas.core.groupby.groupby import GroupBy # noqa: F401
2+
from pandas.core.groupby.generic import ( # noqa: F401
3+
SeriesGroupBy, DataFrameGroupBy, PanelGroupBy)
4+
from pandas.core.groupby.grouper import Grouper # noqa: F401

pandas/util/testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def ensure_clean(filename=None, return_filelike=False):
762762
finally:
763763
try:
764764
os.close(fd)
765-
except Exception as e:
765+
except Exception:
766766
print("Couldn't close file descriptor: {fdesc} (file: {fname})"
767767
.format(fdesc=fd, fname=filename))
768768
try:

0 commit comments

Comments
 (0)