veekun_pokedex/pokedex/db
Andrew Ekstedt 2faa3ed6af Avoid a warning about regex flags in Python 3.6
Python 3.6 deprecated using regex flag syntax (?x) to set flags in the
middle of a pattern. Now you can only use it at the start of a pattern.
Fortunately that same release added a new scoped-flag syntax, (?x:).

(Wait, you say, it looks like our code *does* set flags at the start of
the pattern? That's true, but the markdown module includes our regex in the
middle of a larger one, so it's not actually at the start.)

Fixes this warning (and a couple similar ones):

DeprecationWarning: Flags not at the start of the expression '^(.?)(?x) \[ ([^]]' (truncated)
    self.compiled_re = re.compile(r"^(.?)%s(.)$" % pattern
2021-03-21 15:39:02 -07:00
..
__init__.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
dependencies.py load: Add --recursive option. 2011-04-03 03:17:08 -07:00
load.py Close csv files after dumping 2021-03-21 15:39:02 -07:00
markdown.py Avoid a warning about regex flags in Python 3.6 2021-03-21 15:39:02 -07:00
multilang.py fix test suite under SQLAlchemy 1.2.x 2018-03-30 12:01:21 -07:00
oracle.py Update the docstring on rewrite_long_table_names. 2014-02-21 17:59:52 -05:00
tables.py Make Pokemon.shape_id nullable 2021-03-14 18:12:58 -07:00
translations.py Catch StopIteration explicitly in group_by_object generator (#264) 2019-07-15 13:23:37 -07:00
util.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00