From 0814888ba5662de479996dd80a3b52e4c293449b Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 31 Oct 2014 16:29:19 +0800 Subject: [PATCH] use absolute import --- shadowsocks/asyncdns.py | 7 +++---- shadowsocks/encrypt.py | 14 ++++++-------- shadowsocks/local.py | 8 ++------ shadowsocks/server.py | 8 ++------ shadowsocks/tcprelay.py | 7 +++---- shadowsocks/udprelay.py | 7 +++---- 6 files changed, 19 insertions(+), 32 deletions(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 009c2d3..b639dec 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -27,14 +27,13 @@ import socket import struct import re import logging -import common -import lru_cache -import eventloop + +from shadowsocks import common, lru_cache, eventloop CACHE_SWEEP_INTERVAL = 30 -VALID_HOSTNAME = re.compile("(?!-)[A-Z\d-]{1,63}(?