contrib/testparseutil.py
changeset 43091 127cc1f72e70
parent 43076 2372284d9457
child 43474 70d42e2ad9b4
equal deleted inserted replaced
43090:1f339b503a40 43091:127cc1f72e70
    47         return s.encode('latin1')
    47         return s.encode('latin1')
    48 
    48 
    49     def sysstr(s):
    49     def sysstr(s):
    50         if isinstance(s, builtins.str):
    50         if isinstance(s, builtins.str):
    51             return s
    51             return s
    52         return s.decode(u'latin-1')
    52         return s.decode('latin-1')
    53 
    53 
    54     def opentext(f):
    54     def opentext(f):
    55         return open(f, 'r')
    55         return open(f, 'r')
    56 
    56 
    57 
    57