예제 #1
0
파일: __init__.py 프로젝트: Darriall/pypy
 def get_w_default_encoder(self):
     if self.w_default_encoder is not None:
         # XXX is this level of caching ok?  CPython has some shortcuts
         # for common encodings, but as far as I can see it has no general
         # cache.
         return self.w_default_encoder
     else:
         from pypy.module.sys.interp_encoding import get_w_default_encoder
         return get_w_default_encoder(self.space)
예제 #2
0
 def get_w_default_encoder(self):
     if self.w_default_encoder is not None:
         # XXX is this level of caching ok?  CPython has some shortcuts
         # for common encodings, but as far as I can see it has no general
         # cache.
         return self.w_default_encoder
     else:
         from pypy.module.sys.interp_encoding import get_w_default_encoder
         return get_w_default_encoder(self.space)