From 83f449dc4c040d7b49ce6c63e835cb2fed4a91d0 Mon Sep 17 00:00:00 2001 From: "Carroll, Luke" Date: Fri, 13 Oct 2017 17:39:31 +0100 Subject: [PATCH 1/2] Deleted the class iris.fileformats.rules.DebugString --- lib/iris/fileformats/rules.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/iris/fileformats/rules.py b/lib/iris/fileformats/rules.py index 5b2dbc7603..ef380ef37b 100644 --- a/lib/iris/fileformats/rules.py +++ b/lib/iris/fileformats/rules.py @@ -140,19 +140,6 @@ def _disable_deprecation_warnings(): _enable_rules_deprecations = old_flag_value -class DebugString(str): - """ - Used by the rules for debug purposes - - .. deprecated:: 1.10 - - """ - def __init__(self, *args, **kwargs): - warn_deprecated( - "the `iris.fileformats.rules.DebugString class is deprecated.") - super(DebugString, self).__init__(*args, **kwargs) - - class CMAttribute(object): """ Used by the rules for defining attributes on the Cube in a consistent manner. From b6dabf0f6737066a0f66ff945c36dced3b22e316 Mon Sep 17 00:00:00 2001 From: "Carroll, Luke" Date: Fri, 13 Oct 2017 17:41:56 +0100 Subject: [PATCH 2/2] Removed an elif statement from FunctionRule._process_action_result --- lib/iris/fileformats/rules.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/iris/fileformats/rules.py b/lib/iris/fileformats/rules.py index ef380ef37b..b5f6f40f54 100644 --- a/lib/iris/fileformats/rules.py +++ b/lib/iris/fileformats/rules.py @@ -412,9 +412,6 @@ def _process_action_result(self, obj, cube): elif isinstance(obj, Factory): factory = obj - elif isinstance(obj, DebugString): - print(obj) - # The function returned nothing, like the pp save actions, "lbft = 3" elif obj is None: pass