mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
fix patch
This commit is contained in:
Vendored
+1
-2
@@ -196,8 +196,7 @@ class Container(dict):
|
||||
self._body[idx] = (None, Comment(Trivia(comment_ws="", comment=trivia.comment)))
|
||||
else:
|
||||
self._body[idx] = (None, Null())
|
||||
super(Container, self).__delitem__(key.key)
|
||||
|
||||
super(Container, self).__delitem__(key.key)
|
||||
|
||||
return self
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ index 37014921..5ddd72e7 100644
|
||||
+from .items import Trivia
|
||||
from .items import Whitespace
|
||||
from .items import item as _item
|
||||
|
||||
|
||||
@@ -189,9 +190,14 @@ class Container(dict):
|
||||
if idx is None:
|
||||
raise NonExistentKey(key)
|
||||
|
||||
|
||||
- self._body[idx] = (None, Null())
|
||||
+ old_data = self._body[idx][1]
|
||||
+ trivia = getattr(old_data, "trivia", None)
|
||||
@@ -21,9 +21,8 @@ index 37014921..5ddd72e7 100644
|
||||
+ self._body[idx] = (None, Comment(Trivia(comment_ws="", comment=trivia.comment)))
|
||||
+ else:
|
||||
+ self._body[idx] = (None, Null())
|
||||
+ super(Container, self).__delitem__(key.key)
|
||||
|
||||
+ super(Container, self).__delitem__(key.key)
|
||||
|
||||
- super(Container, self).__delitem__(key.key)
|
||||
|
||||
|
||||
return self
|
||||
|
||||
|
||||
Reference in New Issue
Block a user