示例#1
0
 def __init__(self, stream, filename):
     Reader.__init__(self, stream)
     Scanner.__init__(self)
     if cyaml:
         Parser.__init__(self, stream)
     else:
         Parser.__init__(self)
     Composer.__init__(self)
     SafeConstructor.__init__(self)
     Resolver.__init__(self)
     NodeConstructor.__init__(self, filename)
示例#2
0
 def __init__(self, stream):
     CParser.__init__(self, stream)
     TestConstructor.__init__(self)
     Resolver.__init__(self)