From 35c13a69cff6379f031b77a096b91b7d970d35ac Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 13 Nov 2024 09:52:28 +0100 Subject: [PATCH] remove iso dates workaround --- compliance_checker/cfutil.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compliance_checker/cfutil.py b/compliance_checker/cfutil.py index 345f8301..95c8479f 100644 --- a/compliance_checker/cfutil.py +++ b/compliance_checker/cfutil.py @@ -2055,7 +2055,7 @@ def expanded(self): def _units(units: str): """PLACEHOLDER.""" - # FIXME: Try to make cf_units optional + # FIXME: Make cf_units optional in a more elegant way when pyudunits2 is release. try: return _CCUnit(units) except ImportError: @@ -2066,9 +2066,6 @@ def _units(units: str): # FIXME: cf_units.Unit(None) -> Unit('unknown') if units is None: units = "" - # FIXME: Syntax Error when HH:MM:SS is present in time reference. - if "T00:00:00" in units: - units = units.replace("T00:00:00", "") # FIXME: cf_units raised only ValueError try: