python3ing the code

This commit is contained in:
Paul Tagliamonte 2012-12-17 10:01:02 -05:00
parent 79827d7bbe
commit 94040dfbd3
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,13 @@
from hy.lang.hyobj import HYObject
import sys
class HYString(unicode, HYObject):
if sys.version_info[0] >= 3:
_str_type = str
else:
_str_type = unicode
class HYString(_str_type, HYObject):
def __init__(self, string):
self += string

View File

@ -1,7 +1,7 @@
from hy.lang.hyobj import HYObject
from hy.lang.string import HYString
class HYSymbol(unicode, HYObject):
class HYSymbol(HYString):
def __init__(self, string):
self += string