Skip to content

Commit 83d5836

Browse files
nickygerritsenvmcj
authored andcommitted
Escape \ in Python strings
It seems Python complains about this for some Python versions.
1 parent f0218fc commit 83d5836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc-tools/import-contest.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ if import_file('organizations', ['organizations.json']):
149149
# Also import logos if we have any
150150
# We prefer the 64x64 logo. If it doesn't exist, accept a generic logo (which might be a SVG)
151151
# We also prefer PNG/SVG before JPG
152-
import_images('organizations', 'logo', ['^logo\.64x\d+\.png$', '^logo\.(png|svg)$', '^logo\.64x\d+\.jpg$', '^logo\.jpg$'])
152+
import_images('organizations', 'logo', ['^logo\\.64x\\d+\\.png$', '^logo\\.(png|svg)$', '^logo\\.64x\\d+\\.jpg$', '^logo\\.jpg$'])
153153
if import_file('teams', ['teams.json', 'teams2.tsv']):
154154
# Also import photos if we have any, but prefer JPG over SVG and PNG
155-
import_images('teams', 'photo', ['^photo\.jpg$', '^photo\.(png|svg)$'])
155+
import_images('teams', 'photo', ['^photo\\.jpg$', '^photo\\.(png|svg)$'])
156156
import_file('accounts', ['accounts.json', 'accounts.yaml', 'accounts.tsv'])
157157

158158
problems_imported = False

0 commit comments

Comments
 (0)