예제 #1
0
def from_opaque_string(s):
    if isinstance(s, str):
        return s
    elif isinstance(s, ootype._string):
        return OOSupport.from_rstr(s)
    else:
        return LLSupport.from_rstr(s)
예제 #2
0
파일: llimpl.py 프로젝트: antoine1fr/pygirl
def from_opaque_string(s):
    if isinstance(s, str):
        return s
    elif isinstance(s, ootype._string):
        return OOSupport.from_rstr(s)
    else:
        return LLSupport.from_rstr(s)
예제 #3
0
파일: ll_os.py 프로젝트: chyyuu/pygirl
 def os_getcwd_oofakeimpl():
     return OOSupport.to_rstr(os.getcwd())
예제 #4
0
파일: ll_os.py 프로젝트: chyyuu/pygirl
 def os_access_oofakeimpl(path, mode):
     return os.access(OOSupport.from_rstr(path), mode)
예제 #5
0
파일: ll_os.py 프로젝트: chyyuu/pygirl
 def os_write_oofakeimpl(fd, data):
     return os.write(fd, OOSupport.from_rstr(data))
예제 #6
0
파일: ll_os.py 프로젝트: chyyuu/pygirl
 def os_read_oofakeimpl(fd, count):
     return OOSupport.to_rstr(os.read(fd, count))
예제 #7
0
파일: tool.py 프로젝트: antoine1fr/pygirl
 def unicode_to_ll(self, u):
     from pypy.rpython.module.support import OOSupport
     return OOSupport.to_runicode(u)
예제 #8
0
파일: tool.py 프로젝트: antoine1fr/pygirl
 def string_to_ll(self, s):
     from pypy.rpython.module.support import OOSupport        
     return OOSupport.to_rstr(s)
예제 #9
0
 def unicode_to_ll(self, u):
     from pypy.rpython.module.support import OOSupport
     return OOSupport.to_runicode(u)
예제 #10
0
 def string_to_ll(self, s):
     from pypy.rpython.module.support import OOSupport
     return OOSupport.to_rstr(s)