summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-05-14 09:40:18 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-05-14 09:40:18 +0200
commit6c3fbceff61e679e14aa7c706a4d54fa59f70073 (patch)
tree4151ad53059b61021ff98801b3cb0ecb84468b17
parente9589e8139242774c0e52b3fcc07d70c2d836238 (diff)
parentf0ca1d72e3e02754796506937253feb3e7224e30 (diff)
downloadruamel.yaml-6c3fbceff61e679e14aa7c706a4d54fa59f70073.tar.gz
merge PR17
-rw-r--r--__init__.py4
-rw-r--r--comments.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/__init__.py b/__init__.py
index a8ed004..05b6ad4 100644
--- a/__init__.py
+++ b/__init__.py
@@ -11,8 +11,8 @@ if False: # MYPY
_package_data = dict(
full_package_name='ruamel.yaml',
- version_info=(0, 14, 11),
- __version__='0.14.11',
+ version_info=(0, 14, 12, 'dev'),
+ __version__='0.14.12.dev',
author='Anthon van der Neut',
author_email='a.van.der.neut@ruamel.eu',
description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA
diff --git a/comments.py b/comments.py
index 307ec61..6bee2ac 100644
--- a/comments.py
+++ b/comments.py
@@ -428,7 +428,7 @@ class CommentedSeq(list, CommentedBase):
def __deepcopy__(self, memo):
# type: (Any) -> Any
- res = CommentedSeq()
+ res = self.__class__()
memo[id(self)] = res
for k in self:
res.append(copy.deepcopy(k))
@@ -861,7 +861,7 @@ class CommentedMap(ordereddict, CommentedBase):
def __deepcopy__(self, memo):
# type: (Any) -> Any
- res = CommentedMap()
+ res = self.__class__()
memo[id(self)] = res
for k in self:
res[k] = copy.deepcopy(self[k])