Skip to content

Commit efedb25

Browse files
[FIX] python 3.7 is deprecated for flake, update flake version
1 parent 6bdff4a commit efedb25

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/flake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.7
18+
python-version: 3.8
1919
- uses: actions/checkout@v4
2020
- name: Configuration
21-
run: pip install flake8==3.4.1
21+
run: pip install flake8==4.0.1
2222
- name: Flake8 Script
2323
run: |
2424
flake8 odoo/openupgrade --max-line-length=120

addons/stock/migrations/13.0.1.1/post-migration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
195195
return
196196

197197
env.cr.execute(
198-
f"""
198+
"""
199199
SELECT distinct rp.id,
200200
rp.name,
201201
rp.company_id,
@@ -225,7 +225,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
225225
# map responsible_id to user_id
226226
openupgrade.logged_query(
227227
env.cr,
228-
f"""
228+
"""
229229
WITH partner_user AS (
230230
SELECT sp.id AS picking_id,
231231
rp.id AS partner_id,

addons/website/migrations/13.0.1.0/post-migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _set_data_anchor_xml_attribute(env):
4848
)
4949
for view in website_views:
5050
doc = fromstring(view.arch_db)
51-
links = doc.cssselect("a[href^=\#]:not([href=\#])")
51+
links = doc.cssselect(r"a[href^=\#]:not([href=\#])")
5252
if links:
5353
replacement = {
5454
"selector": ", ".join([link.attrib["href"] for link in links]),

0 commit comments

Comments
 (0)