blob: 477b48ae19fb5a9c76992fe45e75b18a12c9453d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
From: Jonatan Heyman <jonatan@heyman.info>
Date: Thu, 10 Nov 2022 23:26:07 +0100
Subject: [PATCH] Global regex flags must be at the start of regex in Python
3.11
Obtained from:
https://patch-diff.githubusercontent.com/raw/miracle2k/django-assets/pull/104.patch
--- django_assets/glob.py.orig 2018-02-23 09:54:00 UTC
+++ django_assets/glob.py
@@ -121,7 +121,7 @@ def translate(pat):
res = '%s([%s])' % (res, stuff)
else:
res = res + re.escape(c)
- return res + '\Z(?ms)'
+ return '(?ms)' + res + '\Z'
"""Filename globbing utility."""
|