]> git.ipfire.org Git - thirdparty/babel.git/commit
Fix an invalid string to bytes comparison in Python 3 498/head
authorRoy Williams <rwilliams@lyft.com>
Sat, 27 May 2017 00:04:27 +0000 (17:04 -0700)
committerRoy Williams <rwilliams@lyft.com>
Sat, 27 May 2017 01:21:38 +0000 (18:21 -0700)
commitbe718f3a7b2b71e936dcc3b498b7013537aa9036
tree91f6b5f4c132e2e18542f3b10e155dbf4a3ba17e
parent644dbc2eee167407ed437421cd094af3c405d930
Fix an invalid string to bytes comparison in Python 3

In Python 3 this branch would never evaluate to `True` due to comparing a string to bytes.

This was flagged by running some unit tests with the `-bb` flag, so I've added
`-bb` to run with the babel unit tests in Python3.5

Here's some docs on the `-bb` flag:
https://docs.python.org/3.5/library/warnings.html#default-warning-filters
https://docs.python.org/3/howto/pyporting.html#use-continuous-integration-to-stay-compatible
.travis.yml
Makefile
babel/localtime/_unix.py