diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
commit | 460822ea6cef840e0f478918547a806b231c3dc6 (patch) | |
tree | 729118f0273a182b62628aae87ae8c9fe9b5f1c2 /hercules/code/server/db | |
parent | d3648ee52a4860111afe9049713d788f60e5b588 (diff) | |
download | tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.gz tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.bz2 tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.xz tools-460822ea6cef840e0f478918547a806b231c3dc6.zip |
Fix different issues in tools found by pyflakes.
Diffstat (limited to 'hercules/code/server/db')
-rw-r--r-- | hercules/code/server/db/char.py | 4 | ||||
-rw-r--r-- | hercules/code/server/db/charregnumdb.py | 3 | ||||
-rw-r--r-- | hercules/code/server/db/inventory.py | 3 | ||||
-rw-r--r-- | hercules/code/server/db/skill.py | 3 |
4 files changed, 5 insertions, 8 deletions
diff --git a/hercules/code/server/db/char.py b/hercules/code/server/db/char.py index c1bb4a8..cd8e0cc 100644 --- a/hercules/code/server/db/char.py +++ b/hercules/code/server/db/char.py @@ -3,8 +3,8 @@ # Copyright (C) 2015 Evol Online # Author: Andrei Karas (4144) -from code.fileutils import * -from code.stringutils import * +from code.fileutils import readFile +from code.stringutils import escapeSqlStr def saveCharTable(users): dstFile = "newdb/char.sql" diff --git a/hercules/code/server/db/charregnumdb.py b/hercules/code/server/db/charregnumdb.py index 8837c9d..1617c13 100644 --- a/hercules/code/server/db/charregnumdb.py +++ b/hercules/code/server/db/charregnumdb.py @@ -3,8 +3,7 @@ # Copyright (C) 2015 Evol Online # Author: Andrei Karas (4144) -from code.fileutils import * -from code.stringutils import * +from code.fileutils import readFile def saveCharRegNumDbTable(users): dstFile = "newdb/char_reg_num_db.sql" diff --git a/hercules/code/server/db/inventory.py b/hercules/code/server/db/inventory.py index 52a2fd0..e5c1e6a 100644 --- a/hercules/code/server/db/inventory.py +++ b/hercules/code/server/db/inventory.py @@ -3,8 +3,7 @@ # Copyright (C) 2015 Evol Online # Author: Andrei Karas (4144) -from code.fileutils import * -from code.stringutils import * +from code.fileutils import readFile def saveInventoryTable(users): dstFile = "newdb/inventory.sql" diff --git a/hercules/code/server/db/skill.py b/hercules/code/server/db/skill.py index 2f45813..d21eb3d 100644 --- a/hercules/code/server/db/skill.py +++ b/hercules/code/server/db/skill.py @@ -3,8 +3,7 @@ # Copyright (C) 2015 Evol Online # Author: Andrei Karas (4144) -from code.fileutils import * -from code.stringutils import * +from code.fileutils import readFile def saveSkillTable(users): dstFile = "newdb/skill.sql" |