We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d83d04 commit c57355dCopy full SHA for c57355d
pydrive2/settings.py
@@ -2,9 +2,9 @@
2
from yaml import YAMLError
3
4
try:
5
- from yaml import CLoader as Loader
+ from yaml import CSafeLoader as SafeLoader
6
except ImportError:
7
- from yaml import Loader
+ from yaml import SafeLoader
8
9
SETTINGS_FILE = "settings.yaml"
10
SETTINGS_STRUCT = {
@@ -114,7 +114,7 @@ def LoadSettingsFile(filename=SETTINGS_FILE):
114
"""
115
116
with open(filename) as stream:
117
- data = load(stream, Loader=Loader)
+ data = load(stream, Loader=SafeLoader)
118
except (YAMLError, OSError) as e:
119
raise SettingsError(e)
120
return data
0 commit comments