Skip to content

Commit

Permalink
remove iso dates workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Nov 13, 2024
1 parent 2b893c7 commit 35c13a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compliance_checker/cfutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -2066,9 +2066,6 @@ def _units(units: str):
# FIXME: cf_units.Unit(None) -> Unit('unknown')
if units is None:
units = ""

Check warning on line 2068 in compliance_checker/cfutil.py

View check run for this annotation

Codecov / codecov/patch

compliance_checker/cfutil.py#L2068

Added line #L2068 was not covered by tests
# 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:
Expand Down

0 comments on commit 35c13a6

Please sign in to comment.