Skip to content
This repository was archived by the owner on Jan 3, 2026. It is now read-only.

Commit f6be5a1

Browse files
committed
default Python syntax version to 3.6
1 parent b284a6a commit f6be5a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonparser/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def parse_buffer(buffer, mode="exec", flags=[], version=None, engine=None):
1212
"""
1313

1414
if version is None:
15-
version = sys.version_info[0:2]
15+
version = (3, 6)
1616

1717
if engine is None:
1818
engine = pythonparser.diagnostic.Engine()
@@ -47,7 +47,7 @@ def parse(source, filename="<unknown>", mode="exec",
4747
:param flags: (list of string) Future flags.
4848
Equivalent to ``from __future__ import <flags>``.
4949
:param version: (2-tuple of int) Major and minor version of Python
50-
syntax to recognize, ``sys.version_info[0:2]`` by default.
50+
syntax to recognize, ``(3, 6)`` by default.
5151
:param engine: (:class:`diagnostic.Engine`) Diagnostic engine,
5252
a fresh one is created by default
5353
:return: (:class:`ast.AST`) Abstract syntax tree

0 commit comments

Comments
 (0)