diff options
author | John L. Villalovos <john@sodarock.com> | 2022-07-28 22:11:19 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-07-28 22:11:19 -0700 |
commit | 433dba02e0d4462ae84a73d8699fe7f3e07aa410 (patch) | |
tree | 19710dd778df00643c8bf214c1a6f0bfad7522be /gitlab/config.py | |
parent | 8ba97aa459420ec5ae824d9299d6564656841559 (diff) | |
download | gitlab-433dba02e0d4462ae84a73d8699fe7f3e07aa410.tar.gz |
chore: make code PEP597 compliant
Use `encoding="utf-8"` in `open()` and open-like functions.
https://peps.python.org/pep-0597/
Diffstat (limited to 'gitlab/config.py')
-rw-r--r-- | gitlab/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/config.py b/gitlab/config.py index dc577fc..152ec7e 100644 --- a/gitlab/config.py +++ b/gitlab/config.py @@ -135,7 +135,7 @@ class GitlabConfigParser: def _parse_config(self) -> None: _config = configparser.ConfigParser() - _config.read(self._files) + _config.read(self._files, encoding="utf-8") if self.gitlab_id and not _config.has_section(self.gitlab_id): raise GitlabDataError( |