Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 121)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#150 invalid Typo in emitter.c xi spitzak@…

Reported by spitzak@…, 5 years ago.

Description

In libyaml stable branch there appears to be a typo, here is a patch:

--- src/emitter.c       (revision 369)
+++ src/emitter.c       (working copy)
@@ -1154,7 +1154,7 @@
             break;

         case YAML_MAPPING_START_EVENT:
-            if (!yaml_emitter_check_empty_sequence(emitter))
+            if (!yaml_emitter_check_empty_mapping(emitter))
                 return 0;
             length += emitter->anchor_data.anchor_length
                 + emitter->tag_data.handle_length
#147 fixed Loader and Dumper leave circular references around xi kristjan@…

Reported by kristjan@…, 5 years ago.

Description

In an environment where the gc module is turned off, having circular references is evil. When yaml.Loader and yaml.Dumper have finished processing a stream, they leave a bound method in their .state attribute. This causes the loaders and dumpers to stick around. We have patched this locally by doing, for example:

dumper=Dumper()
dumper.open()
try:
    for data in documents:
        dumper.represent(data)
    dumper.close()
finally:
    dumpter.state = dumper.states = None

Maybe there is a better way. Perhaps the Dumper and Loader should both have close() methods that clear the state. Another way would be to not keep instancemethods in state, but rather class methods and bind them to self at runtime.

#146 invalid Trunk build fail xi lacombar@…

Reported by lacombar@…, 5 years ago.

Description

I got the following trunk build failure on a NetBSD host:

In file included from api.c:10: yaml_private.h:1234: error: expected '{' before 'typedef' yaml_private.h:1239: warning: data definition has no type or storage class

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.