Commit Graph

6 Commits

Author SHA1 Message Date
Jelle van der Waa
6b43ce1407 ruff: enable isort rule 2023-11-03 12:35:59 +01:00
Jelle van der Waa
54c331c17b Move from pytz to zoneinfo
Since Python 3.9 zoneinfo is available and datetime also has a timezone
module attribute which can be used. Also refactor the
utcnow/fromutctimestamp usage to according to this excellent blogpost.

https://blog.ganssle.io/articles/2019/11/utcnow.html
2023-02-14 20:21:47 +01:00
Justin !
c6cf91a40d Fix pep8 errors 2020-11-11 22:23:29 +01:00
Jelle van der Waa
7742430a26 md5 expects bytes, so encode the string 2019-01-21 21:19:58 +01:00
Dan McGee
b7b2474064 Various minor code cleanups and fixes
Most of these were suggested by PyCharm, and include everything from
little syntax issues and other bad smells to dead or bad code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-16 22:12:01 -05:00
Dan McGee
5549b119ea Add a rate limiting filter for log messages
This should help cut down on the massive amount of emails I receive when
things go wrong on the production website.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-13 21:24:40 -05:00