define unicode as str for Python3
This commit is contained in:
parent
74f84f0048
commit
eb479efa52
4 changed files with 28 additions and 0 deletions
|
@ -22,6 +22,13 @@ except ImportError:
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
# str is unicode in Python3
|
||||||
|
try:
|
||||||
|
unicode
|
||||||
|
except NameError:
|
||||||
|
unicode = str
|
||||||
|
|
||||||
|
|
||||||
class Git(BaseProject):
|
class Git(BaseProject):
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
|
@ -29,6 +29,13 @@ from .base import BaseProject
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
# str is unicode in Python3
|
||||||
|
try:
|
||||||
|
unicode
|
||||||
|
except NameError:
|
||||||
|
unicode = str
|
||||||
|
|
||||||
|
|
||||||
class ProjectMap(BaseProject):
|
class ProjectMap(BaseProject):
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
|
@ -24,6 +24,13 @@ except ImportError:
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
# str is unicode in Python3
|
||||||
|
try:
|
||||||
|
unicode
|
||||||
|
except NameError:
|
||||||
|
unicode = str
|
||||||
|
|
||||||
|
|
||||||
class Subversion(BaseProject):
|
class Subversion(BaseProject):
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
|
@ -20,6 +20,13 @@ from .base import BaseProject
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
# str is unicode in Python3
|
||||||
|
try:
|
||||||
|
unicode
|
||||||
|
except NameError:
|
||||||
|
unicode = str
|
||||||
|
|
||||||
|
|
||||||
class WakaTime(BaseProject):
|
class WakaTime(BaseProject):
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
Loading…
Reference in a new issue