summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeewis <keewis@posteo.de>2022-04-09 17:13:10 +0200
committerKeewis <keewis@posteo.de>2022-04-09 17:13:10 +0200
commitfad6139045523072232f17bc994ba2e71da419b3 (patch)
treecf29a0befd7a8cf2e45bdb76a645130f276c8065
parent50acf13d1643a5f55ed5f385d7aff350f981ddea (diff)
downloadpint-fad6139045523072232f17bc994ba2e71da419b3.tar.gz
get the tests to pass
-rw-r--r--pint/formatting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/formatting.py b/pint/formatting.py
index fa0cd82..a4ddfb0 100644
--- a/pint/formatting.py
+++ b/pint/formatting.py
@@ -506,7 +506,7 @@ def split_format(spec, default, separate_format_defaults=True):
),
DeprecationWarning,
)
- else:
+ elif not spec:
mspec, uspec = default_mspec, default_uspec
else:
mspec = mspec if mspec else default_mspec