summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-18 00:55:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-18 00:55:27 -0300
commit3fdb2a68b79314890eed4d3b435f6986dc280fd3 (patch)
treede3508ae91d3aa779832192b6e5c344e7724282e
parenta42807c6c632615500a08c77e06d16ae346e46b1 (diff)
downloadserver-3fdb2a68b79314890eed4d3b435f6986dc280fd3.tar.gz
server-3fdb2a68b79314890eed4d3b435f6986dc280fd3.tar.bz2
server-3fdb2a68b79314890eed4d3b435f6986dc280fd3.tar.xz
server-3fdb2a68b79314890eed4d3b435f6986dc280fd3.zip
Try to improve how script looks for linting
-rw-r--r--player.py11
-rw-r--r--protocol.py2
-rwxr-xr-xserver.py4
3 files changed, 11 insertions, 6 deletions
diff --git a/player.py b/player.py
index 30172a6..44793a2 100644
--- a/player.py
+++ b/player.py
@@ -18,10 +18,15 @@
########################################################################################
# Player Module (parties, inventory, and player data)
-from utils import *
-from consts import *
+from utils import (stdout, dl_search, allunits, date_from_sql, date_from_now,
+ now, compress)
+from consts import (SQL_DELAY, SQL_SAVE_TIME, MAX_INV_SIZE, AP_REGEN_TIME_F,
+ Job_Swordsman, Job_Mage, Job_Assassin, Job_Archer, Job_Gunner, SQL_CLEAR,
+ ERR_LOGIN, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY,
+ ERR_BAD, ERR_OFF, ERR_ERR, CLIENTVERSION, UNSELLABLE, DOUBLE_GP, EXP_UP,
+ ERR_DONE, ERR_OK, MAX_PARTIES, NO_PARTY, SUPEREVOMAT, EVO_MAT)
import sql
-import time, json, re
+import json, re #,time
from copy import copy
from threading import Timer
diff --git a/protocol.py b/protocol.py
index bfab370..8814d1b 100644
--- a/protocol.py
+++ b/protocol.py
@@ -18,7 +18,7 @@
########################################################################################
# Protocol Module
# Parses packets
-import utils
+#import utils
import player
from consts import ERR_BAD
diff --git a/server.py b/server.py
index e75fcca..4ba532c 100755
--- a/server.py
+++ b/server.py
@@ -9,8 +9,8 @@ from websock import WebSocketServer, WebSocket
## Local Modules
from utils import stdout, now
-from consts import *
-import sql, protocol, security, traceback
+#from consts import *
+import protocol, security, traceback
###############################################################
# Configuration