Merge branch 'master' into python-3.6-to-3.10

This commit is contained in:
rocky
2024-12-12 18:05:09 -05:00
6 changed files with 10 additions and 6 deletions

View File

@@ -6,17 +6,17 @@ repos:
hooks: hooks:
- id: check-merge-conflict - id: check-merge-conflict
- id: debug-statements - id: debug-statements
stages: [commit] stages: [pre-commit]
- id: end-of-file-fixer - id: end-of-file-fixer
stages: [commit] stages: [pre-commit]
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.13.2 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
stages: [commit] stages: [pre-commit]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.12.1 rev: 23.12.1
hooks: hooks:
- id: black - id: black
language_version: python3 language_version: python3
stages: [commit] stages: [pre-commit]

View File

@@ -17,7 +17,7 @@ cd $mydir
(cd $fulldir/.. && \ (cd $fulldir/.. && \
setup_version python-spark python-2.4 && \ setup_version python-spark python-2.4 && \
setup_verseion python-xdis python-2.4-to-2.7) setup_version python-xdis python-2.4-to-2.7)
checkout_finish python-2.4-to-2.7 checkout_finish python-2.4-to-2.7

Binary file not shown.

Binary file not shown.

View File

@@ -391,6 +391,10 @@ class PythonParser(GenericASTBuilder):
returns ::= return returns ::= return
returns ::= _stmts return returns ::= _stmts return
# NOP
stmt ::= nop_stmt
nop_stmt ::= NOP
""" """
pass pass

View File

@@ -17,7 +17,7 @@
import re import re
from uncompyle6.semantics.consts import INDENT_PER_LEVEL, PRECEDENCE, TABLE_DIRECT from uncompyle6.semantics.consts import INDENT_PER_LEVEL, PRECEDENCE
from uncompyle6.semantics.helper import flatten_list from uncompyle6.semantics.helper import flatten_list
# FIXME get from a newer xdis # FIXME get from a newer xdis