Skip to content

Commit 020143f

Browse files
committed
Compatibility with python 3.11 (Gallopsled#2070)
Closes Gallopsled#2057 Closes Gallopsled#2052
1 parent 416c33e commit 020143f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ pypandoc
1212
pyserial>=2.7
1313
requests>=2.5.1
1414
ropgadget>=5.3
15-
sphinx==1.8.6; python_version < '3.0.0'
16-
sphinx==4.5.0; python_version >= '3.0.0'
15+
sphinx==1.8.6; python_version<'3'
16+
sphinx>=4.5.0; python_version>='3'
1717
sphinx_rtd_theme
18-
sphinxcontrib-napoleon
19-
sphinxcontrib-autoprogram<=0.1.5
18+
sphinxcontrib-autoprogram<=0.1.5

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
'sphinx.ext.coverage',
4343
'sphinx.ext.todo',
4444
'sphinx.ext.intersphinx',
45+
'sphinx.ext.napoleon',
4546
'sphinxcontrib.autoprogram',
46-
'sphinxcontrib.napoleon'
4747
]
4848

4949
# Disable "info" logging directly to stdout by Sphinx

pwnlib/util/safeeval.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
'BUILD_CONST_KEY_MAP', 'BUILD_STRING',
77
'LOAD_CONST','RETURN_VALUE','STORE_SUBSCR', 'STORE_MAP',
88
'LIST_TO_TUPLE', 'LIST_EXTEND', 'SET_UPDATE', 'DICT_UPDATE', 'DICT_MERGE',
9+
'COPY', 'RESUME',
910
]
1011

1112
_expr_codes = _const_codes + [
@@ -15,6 +16,7 @@
1516
'BINARY_MODULO','BINARY_ADD','BINARY_SUBTRACT',
1617
'BINARY_LSHIFT','BINARY_RSHIFT','BINARY_AND','BINARY_XOR',
1718
'BINARY_OR',
19+
'BINARY_OP',
1820
]
1921

2022
_values_codes = _expr_codes + ['LOAD_NAME']

0 commit comments

Comments
 (0)