python3ing the code
This commit is contained in:
parent
79827d7bbe
commit
94040dfbd3
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user