From 1e8916438f7c4f67bd7745103b870d84f6ba2d01 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 3 Jun 2022 09:26:26 -0700 Subject: chore: enable pylint checks Enable the pylint checks: * unnecessary-pass * unspecified-encoding Update code to resolve errors found --- gitlab/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitlab/cli.py') diff --git a/gitlab/cli.py b/gitlab/cli.py index c9e182d..18618eb 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -263,7 +263,7 @@ def _parse_value(v: Any) -> Any: # If the user-provided value starts with @, we try to read the file # path provided after @ as the real value. Exit on any error. try: - with open(v[1:]) as f: + with open(v[1:], encoding="utf-8") as f: return f.read() except Exception as e: sys.stderr.write(f"{e}\n") -- cgit v1.2.1