Modify ↓
Ticket #191 (new defect)
CSafeLoader and CSafeDumper are missing a dispose method in 3.10 and trunk
| Reported by: | jesstess | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: | jessica.mckellar@… |
Description
I've attached reproducers. This was discovered in Ubuntu Oneiric, where 3.10 is the stock python-yaml package version.
Traceback (most recent call last):
File "yaml_test.py", line 5, in <module>
yaml.dump("Foobar", fd, Dumper=CSafeDumper)
File "/home/jesstess/pyyaml-trunk/lib/yaml/__init__.py", line 204, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/home/jesstess/pyyaml-trunk/lib/yaml/__init__.py", line 195, in dump_all
dumper.dispose()
AttributeError: 'CSafeDumper' object has no attribute 'dispose'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

