Skip to content

Commit d78e53c

Browse files
authored
Add compatibility with older humanize versions (#1196)
Also drop the humanize pinning since newer versions work too. Fixes: commit 70b1ae4 See-also: #1156
1 parent f41b072 commit d78e53c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flower/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def bugreport(app=None):
2020
return 'flower -> flower:%s tornado:%s humanize:%s%s' % (
2121
__version__,
2222
tornado.version,
23-
humanize.__version__,
23+
getattr(humanize, '__version__', None) or getattr(humanize, 'VERSION'),
2424
app.bugreport()
2525
)
2626
except (ImportError, AttributeError) as e:

requirements/default.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
celery>=5.0.5
22
tornado>=5.0.0,<7.0.0
33
prometheus_client>=0.8.0
4-
humanize==3.12.0
4+
humanize
55
pytz

0 commit comments

Comments
 (0)