From 8f8b5b3b3f64bffc0a1096026cd45d3d79ae6668 Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva <91160475+natmokval@users.noreply.github.com> Date: Sun, 20 Nov 2022 17:34:12 +0100 Subject: [PATCH] STYLE enable pylint: invalid-envvar-default (#49801) --- pandas/io/clipboard/__init__.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py index 78289174b7e68..e574ed2c8059a 100644 --- a/pandas/io/clipboard/__init__.py +++ b/pandas/io/clipboard/__init__.py @@ -69,7 +69,7 @@ # `import PyQt4` sys.exit()s if DISPLAY is not in the environment. # Thus, we need to detect the presence of $DISPLAY manually # and not load PyQt4 if it is absent. -HAS_DISPLAY = os.getenv("DISPLAY", False) +HAS_DISPLAY = os.getenv("DISPLAY") EXCEPT_MSG = """ Pyperclip could not find a copy/paste mechanism for your system. diff --git a/pyproject.toml b/pyproject.toml index 35dd35a936c56..672a3208ac5ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,7 +130,6 @@ disable = [ "expression-not-assigned", "fixme", "global-statement", - "invalid-envvar-default", "invalid-overridden-method", "keyword-arg-before-vararg", "non-parent-init-called",