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",