-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from hydralabs/defusedxml
Switch to use defusedxml as the default xml loader.
- Loading branch information
Showing
15 changed files
with
175 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from cpyamf cimport codec, util, amf3 | ||
|
||
|
||
cdef class Context(codec.Context): | ||
cdef amf3.Context amf3_context | ||
|
||
|
||
cdef class Decoder(codec.Decoder): | ||
cdef public bint use_amf3 | ||
cdef readonly Context context | ||
cdef amf3.Decoder amf3_decoder | ||
|
||
cdef object readAMF3(self) | ||
cdef object readLongString(self, bint bytes=?) | ||
cdef object readMixedArray(self) | ||
cdef object readReference(self) | ||
cdef object readTypedObject(self) | ||
cdef void readObjectAttributes(self, object obj_attrs) | ||
cdef object readBytes(self) | ||
cdef object readBoolean(self) | ||
|
||
|
||
cdef class Encoder(codec.Encoder): | ||
cdef public bint use_amf3 | ||
cdef readonly Context context | ||
cdef amf3.Encoder amf3_encoder | ||
|
||
cdef inline int _writeEndObject(self) except -1 | ||
cdef int writeAMF3(self, o) except -1 | ||
cdef int _writeDict(self, dict attrs) except -1 | ||
cdef inline int writeReference(self, o) except -2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.