From a76181fa77d7865894ccbc330dfc554e0f5bcafe Mon Sep 17 00:00:00 2001 From: mpenning Date: Sun, 15 Oct 2023 21:35:56 -0500 Subject: [PATCH] Migrate from 'if False' to 'if 1 == 2' --- ciscoconfparse/ccp_abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ciscoconfparse/ccp_abc.py b/ciscoconfparse/ccp_abc.py index 92a39b19..5b0aafea 100644 --- a/ciscoconfparse/ccp_abc.py +++ b/ciscoconfparse/ccp_abc.py @@ -151,7 +151,7 @@ def calculate_line_id(self): # together. _line_id = hash(" " * indent + " ".join(self.text.strip().split())) - if False: + if 1 == 2: # Do not execute this code... ################################################################## # use str.split() below to ensure that whitespace differences # hash the same way... I added this code as a possible @@ -162,6 +162,7 @@ def calculate_line_id(self): # I am keeping this in calculate_line_id() to document the # proposal and why I decided against it. ################################################################## + raise NotImplementedError() indent_str = indent * " " if self.is_comment is False: _line_id = hash(indent_str + " ".join(self.text.strip().split()))