Changeset 331 for pyyaml/trunk/lib3

Show
Ignore:
Timestamp:
12/29/08 18:21:43 (3 years ago)
Author:
xi
Message:

Use Cython if available; added Python 3 support to _yaml.pyx.

Location:
pyyaml/trunk/lib3/yaml
Files:
1 modified
1 copied

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib3/yaml/__init__.py

    r328 r331  
    1  
    2 __version__ = '3.08' 
    3 __with_libyaml__ = False 
    41 
    52from .error import * 
     
    118from .loader import * 
    129from .dumper import * 
     10 
     11__version__ = '3.08' 
     12try: 
     13    from .cyaml import * 
     14    __with_libyaml__ = True 
     15except ImportError: 
     16    __with_libyaml__ = False 
    1317 
    1418import io 
  • pyyaml/trunk/lib3/yaml/cyaml.py

    r223 r331  
    55from _yaml import CParser, CEmitter 
    66 
    7 from constructor import * 
     7from .constructor import * 
    88 
    9 from serializer import * 
    10 from representer import * 
     9from .serializer import * 
     10from .representer import * 
    1111 
    12 from resolver import * 
     12from .resolver import * 
    1313 
    1414class CBaseLoader(CParser, BaseConstructor, BaseResolver): 
     
    4242            version=None, tags=None): 
    4343        CEmitter.__init__(self, stream, canonical=canonical, 
    44                 indent=indent, width=width, 
     44                indent=indent, width=width, encoding=encoding, 
    4545                allow_unicode=allow_unicode, line_break=line_break, 
    4646                explicit_start=explicit_start, explicit_end=explicit_end, 
     
    5959            version=None, tags=None): 
    6060        CEmitter.__init__(self, stream, canonical=canonical, 
    61                 indent=indent, width=width, 
     61                indent=indent, width=width, encoding=encoding, 
    6262                allow_unicode=allow_unicode, line_break=line_break, 
    6363                explicit_start=explicit_start, explicit_end=explicit_end, 
     
    7676            version=None, tags=None): 
    7777        CEmitter.__init__(self, stream, canonical=canonical, 
    78                 indent=indent, width=width, 
     78                indent=indent, width=width, encoding=encoding, 
    7979                allow_unicode=allow_unicode, line_break=line_break, 
    8080                explicit_start=explicit_start, explicit_end=explicit_end,