summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-10-07 13:59:09 +0530
committerDastgir <dastgirp@gmail.com>2018-10-07 13:59:09 +0530
commit838d12f50e5a78f271a67292141b463404a33fe4 (patch)
treeecf32d25792c684a9c4737d9d9dc36a0e998a168 /tools
parent4390ad0d55be30eae0d70813cbc471d76539f2fa (diff)
downloadhercules-838d12f50e5a78f271a67292141b463404a33fe4.tar.gz
hercules-838d12f50e5a78f271a67292141b463404a33fe4.tar.bz2
hercules-838d12f50e5a78f271a67292141b463404a33fe4.tar.xz
hercules-838d12f50e5a78f271a67292141b463404a33fe4.zip
Removing the use of Equivalence operator in utils.py
Diffstat (limited to 'tools')
-rw-r--r--tools/utils/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/utils/common.py b/tools/utils/common.py
index 96fd3b3c5..acceb9b30 100644
--- a/tools/utils/common.py
+++ b/tools/utils/common.py
@@ -35,13 +35,13 @@ def LoadDBConsts(DBname, mode, serverpath):
with io.open(filename) as f:
config = libconf.load(f)
db = config[DBname]
- if DBname is 'item_db':
+ if DBname == 'item_db':
for i, v in enumerate(db):
consts[db[i].Id] = db[i].AegisName
- elif DBname is 'mob_db':
+ elif DBname == 'mob_db':
for i, v in enumerate(db):
consts[db[i].Id] = db[i].SpriteName
- elif DBname is 'skill_db':
+ elif DBname == 'skill_db':
for i, v in enumerate(db):
consts[db[i].Id] = db[i].Name
else: