Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Klaus Zimmermann
climix
Commits
728d9386
Commit
728d9386
authored
Feb 21, 2020
by
Klaus Zimmermann
Browse files
Remove six (closes #160)
Climix depends on python3 and does not need python2 compatibility.
parent
a146b0ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
climix/util/change_pr_units.py
View file @
728d9386
...
...
@@ -4,7 +4,6 @@ from collections import namedtuple, OrderedDict
from
cf_units
import
Unit
import
iris
import
six
DENSITY_WATER
=
Unit
(
'1000 kg m-3'
)
...
...
@@ -40,7 +39,7 @@ def get_standard_name_for_units(units):
def
ensure_units_and_standard_name
(
units
,
standard_name
):
if
isinstance
(
units
,
s
ix
.
string_types
):
if
isinstance
(
units
,
s
tr
):
units
=
Unit
(
units
)
if
units
is
None
and
standard_name
is
None
:
raise
ValueError
(
'No new units or new standard name is given.'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment