File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
1
import difflib
2
2
3
- # Workaround for race condition in fnmatchcase which is used by pygments
4
- import fnmatch
5
3
import logging
6
4
import os
7
5
import shutil
8
- import sys
9
6
import tempfile
10
7
import zipfile
11
8
18
15
from django .urls import reverse
19
16
from django .utils .translation import gettext_lazy as _
20
17
from django .views .decorators .http import require_POST
21
- from pygments import highlight
22
-
23
- # pylint: disable=no-name-in-module
24
- from pygments .formatters import HtmlFormatter
25
- from pygments .lexers import guess_lexer_for_filename
26
- from pygments .util import ClassNotFound
27
18
28
19
from oioioi .base .permissions import enforce_condition
29
20
from oioioi .base .utils import jsonify , strip_num_or_hash
52
43
get_submittable_languages ,
53
44
)
54
45
55
- fnmatch ._MAXCACHE = sys .maxsize
56
-
57
46
logger = logging .getLogger (__name__ )
58
47
59
48
Original file line number Diff line number Diff line change 35
35
"coreapi>=2.3,<2.4" ,
36
36
"dj-pagination>=2.5,<2.6" ,
37
37
"django-compressor>=4.3,<4.4" ,
38
- "Pygments>=2.15,<2.16" ,
39
38
"django-libsass>=0.9,<0.10" ,
40
39
"django-debug-toolbar" ,
41
40
"django-extensions>=3.2,<3.3" ,
You can’t perform that action at this time.
0 commit comments