aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/util/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/storage/util/config.py')
-rw-r--r--libbe/storage/util/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/storage/util/config.py b/libbe/storage/util/config.py
index f53f5b2..c6546a0 100644
--- a/libbe/storage/util/config.py
+++ b/libbe/storage/util/config.py
@@ -69,7 +69,7 @@ def set_val(name, value, section="DEFAULT", encoding=None):
encoding : str
The config file's encoding, defaults to :py:data:`default_encoding`.
"""
- if encoding == None:
+ if encoding is None:
encoding = default_encoding
config = configparser.ConfigParser()
if os.path.exists(path()) == False: # touch file or config
@@ -112,7 +112,7 @@ def get_val(name, section="DEFAULT", default=None, encoding=None):
True
"""
if os.path.exists(path()):
- if encoding == None:
+ if encoding is None:
encoding = default_encoding
config = configparser.ConfigParser()
f = codecs.open(path(), 'r', encoding)