forked from 0x2620/pandora
py3
This commit is contained in:
parent
7a8c340312
commit
c4350e2334
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@ import re
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import unicodedata
|
import unicodedata
|
||||||
|
|
||||||
from six import string_types
|
from six import PY2, string_types
|
||||||
from six.moves.urllib.parse import quote, unquote
|
from six.moves.urllib.parse import quote, unquote
|
||||||
from django.db import models, transaction
|
from django.db import models, transaction
|
||||||
from django.db.models import Q, Sum, Max
|
from django.db.models import Q, Sum, Max
|
||||||
|
@ -29,6 +29,8 @@ from archive.chunk import save_chunk
|
||||||
from . import managers
|
from . import managers
|
||||||
from . import utils
|
from . import utils
|
||||||
|
|
||||||
|
if not PY2:
|
||||||
|
unicode = str
|
||||||
|
|
||||||
def get_path(f, x):
|
def get_path(f, x):
|
||||||
return f.path(x)
|
return f.path(x)
|
||||||
|
|
Loading…
Reference in a new issue