File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import shutil
2
2
import sys
3
3
import os .path
4
- import yaml
5
4
import pathlib
5
+ import yaml
6
6
7
7
8
8
def default_config_path ():
@@ -31,7 +31,7 @@ def default_config_path():
31
31
if not os .path .exists (path ):
32
32
os .makedirs (path )
33
33
else :
34
- raise RuntimeError ("Operating sytem not supported" )
34
+ raise RuntimeError ("Operating system not supported" )
35
35
36
36
return path
37
37
@@ -51,7 +51,7 @@ def load_config(path):
51
51
Then it opens the specified config file and returns all keys which include token and UserId.
52
52
"""
53
53
# opens specified file to retrieve config tokens
54
- if isinstance (path , str ) or isinstance ( path , pathlib .Path ):
54
+ if isinstance (path , ( pathlib .Path , str ) ):
55
55
assert path
56
56
with open (f"{ path } " , 'r' ) as stream :
57
57
data = yaml .safe_load (stream )
You can’t perform that action at this time.
0 commit comments