nested-diff
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: nested-diff | ||
| Version: 1.3.1 | ||
| Version: 1.3.2 | ||
| Summary: Recursive diff for nested structures | ||
@@ -26,2 +26,3 @@ Home-page: https://github.com/mr-mixas/Nested-Diff.py | ||
| Classifier: Programming Language :: Python :: 3.11 | ||
| Classifier: Programming Language :: Python :: 3.12 | ||
| Classifier: Programming Language :: Python :: Implementation :: CPython | ||
@@ -28,0 +29,0 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy |
@@ -23,3 +23,3 @@ # -*- coding: utf-8 -*- | ||
| __version__ = '1.3.1' | ||
| __version__ = '1.3.2' | ||
| __author__ = 'Michael Samoglyadov' | ||
@@ -325,3 +325,3 @@ __license__ = 'Apache License, Version 2.0' | ||
| Returns: | ||
| Tuple: nested diff. | ||
| Nested diff. | ||
@@ -328,0 +328,0 @@ """ |
+11
-4
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright 2019-2022 Michael Samoglyadov | ||
| # Copyright 2019-2023 Michael Samoglyadov | ||
| # | ||
@@ -475,8 +475,15 @@ # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| try: | ||
| from yaml import CSafeDumper as YamlDumper | ||
| from yaml import CSafeDumper as ImportedYamlDumper | ||
| except ImportError: | ||
| from yaml import SafeDumper as YamlDumper | ||
| from yaml import SafeDumper as ImportedYamlDumper | ||
| class _YamlDumper(ImportedYamlDumper): | ||
| def represent_scalar(self, tag, value, style=None): | ||
| if isinstance(value, str) and '\n' in value: | ||
| return super().represent_scalar(tag, value, style='|') | ||
| return super().represent_scalar(tag, value, style=style) | ||
| self.yaml = yaml | ||
| self.yaml_dumper = YamlDumper | ||
| self.yaml_dumper = _YamlDumper | ||
| self.opts = self.get_opts(kwargs) | ||
@@ -483,0 +490,0 @@ |
+2
-1
| Metadata-Version: 2.1 | ||
| Name: nested_diff | ||
| Version: 1.3.1 | ||
| Version: 1.3.2 | ||
| Summary: Recursive diff for nested structures | ||
@@ -26,2 +26,3 @@ Home-page: https://github.com/mr-mixas/Nested-Diff.py | ||
| Classifier: Programming Language :: Python :: 3.11 | ||
| Classifier: Programming Language :: Python :: 3.12 | ||
| Classifier: Programming Language :: Python :: Implementation :: CPython | ||
@@ -28,0 +29,0 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy |
+1
-0
@@ -32,2 +32,3 @@ import setuptools | ||
| 'Programming Language :: Python :: 3.11', | ||
| 'Programming Language :: Python :: 3.12', | ||
| 'Programming Language :: Python :: Implementation :: CPython', | ||
@@ -34,0 +35,0 @@ 'Programming Language :: Python :: Implementation :: PyPy', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
113655
0.43%2316
0.26%