From 6c3caef00377f4c3caea263ae453a1a7a561debc Mon Sep 17 00:00:00 2001 From: dcslagel Date: Fri, 8 May 2020 11:44:19 -0600 Subject: [PATCH 1/2] Add a simple deprecation docstring to to_json_old() --- lasio/las.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lasio/las.py b/lasio/las.py index f414113a..c9ab0cef 100644 --- a/lasio/las.py +++ b/lasio/las.py @@ -863,6 +863,10 @@ def json(self): return self.to_json() def to_json_old(self): + """ + deprecated: to_json_old version=0.25.1 since=20200507 remove=20210508 + replacement_options: json() + """ obj = OrderedDict() for name, section in self.sections.items(): try: From 32c467d55184307f31eacbe0e735365c891716fd Mon Sep 17 00:00:00 2001 From: dcslagel Date: Sat, 9 May 2020 09:21:09 -0600 Subject: [PATCH 2/2] Correct replacement option to to_json() --- lasio/las.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasio/las.py b/lasio/las.py index c9ab0cef..3b6be59f 100644 --- a/lasio/las.py +++ b/lasio/las.py @@ -865,7 +865,7 @@ def json(self): def to_json_old(self): """ deprecated: to_json_old version=0.25.1 since=20200507 remove=20210508 - replacement_options: json() + replacement_options: to_json() """ obj = OrderedDict() for name, section in self.sections.items():