define unicode as str for Python3

This commit is contained in:
Alan Hamlett 2014-01-15 16:41:35 -08:00
parent 74f84f0048
commit eb479efa52
4 changed files with 28 additions and 0 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):