use absolute import

This commit is contained in:
clowwindy 2014-10-31 16:29:19 +08:00
parent 89dc6031e8
commit 0814888ba5
6 changed files with 19 additions and 32 deletions

View file

@ -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}(?<!-)$", re.IGNORECASE)
VALID_HOSTNAME = re.compile(r"(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
common.patch_socket()