summaryrefslogtreecommitdiff
path: root/representer.py
Commit message (Collapse)AuthorAgeFilesLines
* retrofitted 0.18 changesAnthon van der Neut2023-05-011-172/+124
|
* Preserve Octal format in YAML 1.1 docsJacob Floyd2022-03-071-1/+4
|
* fix mypy issues emitter.py0.17.19Anthon van der Neut2021-12-261-0/+1
|
* fix for issue 393Anthon van der Neut2021-08-211-0/+12
|
* fix for issue 3870.17.8Anthon van der Neut2021-06-091-1/+1
| | | | | tagged objects that have a templated (idNNN) anchor, did get the anchor added explicitly, resulting potentially in double anchors
* fix 385 (missing attribute) and mypy issues0.17.6Anthon van der Neut2021-05-311-3/+4
|
* fix for issue 3840.17.5Anthon van der Neut2021-05-301-7/+11
| | | | aliased scalars in !!set would not round trip with ?
* removed (object), prepare new RTScannerAnthon van der Neut2021-04-191-1/+1
|
* partial fix for 3510.17.4Anthon van der Neut2021-04-071-1/+3
|
* remove support for 2.7, prepare for f-strings0.17.0Anthon van der Neut2021-03-261-10/+22
|
* remove python 2 specific codeAnthon van der Neut2021-03-091-258/+100
| | | | add future deprecation warning to old style functions
* update links in doc0.16.12Anthon van der Neut2020-09-041-12/+11
|
* correct empty string mapping key rt0.16.6Anthon van der Neut2020-01-201-0/+2
|
* mypy, split contruct_object0.16.3Anthon van der Neut2019-08-151-3/+4
| | | | | | | | fixes issue #306 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #280 namedtuple erorring in error generation on safe_dumpAnthon van der Neut2019-02-271-2/+2
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix indexing error on empty list for merge-key position0.15.87Anthon van der Neut2019-01-221-1/+4
|
* insert merge key in old (absolute) position0.15.86Anthon van der Neut2019-01-161-1/+2
|
* preserve anchors on scalars, on tagged objects0.15.82Anthon van der Neut2018-12-281-4/+19
| | | | | | | | fixes issue #63 fixes issue #266 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* roundtrip anchors/aliases on str, int, floatAnthon van der Neut2018-12-271-19/+56
|
* fix issue #244 dumping methods of metaclass derived classes0.15.81Anthon van der Neut2018-12-061-0/+1
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix for issue with folds after (and before) spaces being emitted as BEL ↵0.15.80Anthon van der Neut2018-11-261-1/+5
| | | | character instead of discarding
* fix issue #194 object attributes always sorted0.15.77Anthon van der Neut2018-11-091-6/+7
| | | | | | | | | Test for this issue in: https://bitbucket.org/ruamel/yaml.data/src/default/object/control_base_representer_mapping_sort.yaml *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #255 and #256 empty collection defaulting to flow-style0.15.76Anthon van der Neut2018-11-011-2/+5
| | | | | | | | an empty collection now defaults to best style. I.e. if elements are inserted their style is not forced to flow-style *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #250 dropping of comment when seq within seq0.15.74Anthon van der Neut2018-10-171-1/+18
| | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #214 part two: use __qualname__ for ↵Anthon van der Neut2018-09-261-1/+5
| | | | | | | | | tag:yaml.org,2002:python/object/apply this definately needs some test *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* fix issue #229 enable round-trip of floats without number before the dotAnthon van der Neut2018-08-301-2/+2
| | | | | | | [ .5, -.5, +.5 ] should work *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
* allow round trip of tagged sequencesAnthon van der Neut2018-08-301-0/+15
|
* fix #158 folded scalars not roundtripping0.15.61Anthon van der Neut2018-08-231-4/+23
|
* updates for mypy and remove print statementsAnthon van der Neut2018-08-181-1/+0
|
* allow simple mappings as mapping keysAnthon van der Neut2018-08-161-0/+4
|
* fix issue #124: incorrect tags for class methodsAnthon van der Neut2018-08-081-1/+5
|
* added context manager, mypy cleanup (w. Optional) added tests0.15.50Anthon van der Neut2018-08-051-2/+2
|
* leading empty lines and comments on root level literal scalars not preserved0.15.49Anthon van der Neut2018-08-051-1/+6
| | | | | | | | added test, fixed both now you can have --- !some_tag | # with a comment this is a multi- line literal scalar
* Apply oitnb and mypy 0.620, then make everything work again0.15.48Anthon van der Neut2018-08-031-168/+147
|
* Merge PR29, fixes issue #195Anthon van der Neut2018-06-131-1/+3
|\ | | | | | | | | *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
| * Consider m_sign when calculating precisionRolf Wojtech2018-03-221-1/+1
| | | | | | | | Together with the last commit this fixes the loss of precision when handling floats in scientic notation.
| * Attempted fix for scientic notation parsingRolf Wojtech2018-03-211-1/+1
|/
* fix issue #157: CDumper not dumping floatsAnthon van der Neut2017-09-171-1/+1
|
* round-trip support for tagged scalars0.15.33Anthon van der Neut2017-08-311-2/+12
| | | | | Inspired by Matthew Patton's question on StackOverflow: https://stackoverflow.com/a/45967047/1307905
* fix issue #149: operated on ScalarFloat cannot be dumped.0.15.32Anthon van der Neut2017-08-211-1/+1
| | | | | | | | | | | | | Thanks for reporting I "fixed" this by making the operators return a normal (bare) float, as the preservation is mostly there for round-trips without operations. Contrary to ScalarInt you cannot as easily preserve the style, and that needs a lot more testing, and probably much smarter code (i.e. 1.23e4 *= 10 should probably give 1.23e5 and not 12.3e4). *If this change makes things work again without your explicit convert to bare float, please **Close** this issue.*
* allow setting of yaml.default_flow_style = None in new APIAnthon van der Neut2017-08-211-2/+3
|
* fix issue #62: not allowing : or ? in flow style plain scalar0.15.27Anthon van der Neut2017-08-131-1/+1
| | | | also fix list withing list comment dropping, as it happened to occur in the example
* fix lists within lists with commentsAnthon van der Neut2017-08-131-0/+10
| | | | had to keep emit the comment and mark it for having been emitted, then reset on next run (as with maps)
* fix issue #147: not able to dump floats0.15.25Anthon van der Neut2017-08-091-1/+1
| | | | | | | | This happened when dumping without loading, e.g.: python -c "import ruamel.yaml, sys; ruamel.yaml.round_trip_dump([3.14])" When this fix solves the problem, please close this issue
* fix issue #25: dropping comment between mapping key and value0.15.24Anthon van der Neut2017-08-091-11/+10
|
* python 2.7 changes float round-trippignAnthon van der Neut2017-08-071-16/+16
|
* more float stuff and mypy changesAnthon van der Neut2017-08-061-20/+29
|
* scalarfloat supportAnthon van der Neut2017-08-061-8/+77
|
* yaml.boolean_representation = [u'False', u'True']Anthon van der Neut2017-08-051-4/+7
|
* fix for issue #143: handling single excl mark tags0.15.22Anthon van der Neut2017-07-281-3/+4
| | | | There were no tests for roundtripping tags for non-registered objects