Skip to content
Snippets Groups Projects
Unverified Commit d1f3fccc authored by Varac's avatar Varac
Browse files

Use with

parent 364363e1
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,7 @@ class Indicator():
"""Initialize idicator."""
# Load config
config_file = open(Path.expanduser(config),
encoding="UTF8") # type:ignore
with open(Path.expanduser(config), encoding="UTF8") as config_file: # type:ignore
opts = yaml.load(config_file, Loader=yaml.FullLoader)
self.url = opts.get('url')
self.port = opts.get('port', 443)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment