Split into modules
This commit is contained in:
parent
9afe5c2f2a
commit
5ecc5fb36c
7 changed files with 625 additions and 510 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import six
|
||||
try:
|
||||
from urllib.parse import urlparse as parse_url
|
||||
except ImportError:
|
||||
from urlparse import urlparse as parse_url
|
||||
|
||||
|
||||
def get_byte(x, index):
|
||||
return six.indexbytes(x, index)
|
||||
|
||||
|
||||
def get_character(x, index):
|
||||
return chr(six.indexbytes(x, index))
|
||||
|
||||
|
||||
def get_unicode(x):
|
||||
return x.decode('utf-8')
|
||||
Loading…
Add table
Add a link
Reference in a new issue