Skip to content

Commit

Permalink
Also add reuse_anchors to cyaml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Sep 23, 2021
1 parent ece4e90 commit 160acde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/yaml/cyaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@

class CBaseLoader(CParser, BaseConstructor, BaseResolver):

def __init__(self, stream):
def __init__(self, stream, reuse_anchors=False):
CParser.__init__(self, stream)
BaseConstructor.__init__(self)
BaseResolver.__init__(self)

class CSafeLoader(CParser, SafeConstructor, Resolver):

def __init__(self, stream):
def __init__(self, stream, reuse_anchors=False):
CParser.__init__(self, stream)
SafeConstructor.__init__(self)
Resolver.__init__(self)

class CFullLoader(CParser, FullConstructor, Resolver):

def __init__(self, stream):
def __init__(self, stream, reuse_anchors=False):
CParser.__init__(self, stream)
FullConstructor.__init__(self)
Resolver.__init__(self)

class CUnsafeLoader(CParser, UnsafeConstructor, Resolver):

def __init__(self, stream):
def __init__(self, stream, reuse_anchors=False):
CParser.__init__(self, stream)
UnsafeConstructor.__init__(self)
Resolver.__init__(self)

class CLoader(CParser, Constructor, Resolver):

def __init__(self, stream):
def __init__(self, stream, reuse_anchors=False):
CParser.__init__(self, stream)
Constructor.__init__(self)
Resolver.__init__(self)
Expand Down

0 comments on commit 160acde

Please sign in to comment.