diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-03-19 11:20:27 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-03-19 11:20:27 +0100 |
| commit | 84234b3987fa8f78024b650bb0596e64a2030a0e (patch) | |
| tree | ab119054394a10f73b3bbb6ab60bbf133cb521ca /sources/pyside2/PySide2/support/generate_pyi.py | |
| parent | 2e327c6f3ccec91c291dfe251823a8520fa280a1 (diff) | |
| parent | 1c2d6c525aabdaa0e2a264b5aac6e4146d3319e5 (diff) | |
Merge remote-tracking branch 'origin/5.12' into 5.13
Change-Id: I137dc1d4b7dc73ee8ad4cff2eb031e2aaead2644
Diffstat (limited to 'sources/pyside2/PySide2/support/generate_pyi.py')
| -rw-r--r-- | sources/pyside2/PySide2/support/generate_pyi.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py index 21ef841fe..a92ee76f0 100644 --- a/sources/pyside2/PySide2/support/generate_pyi.py +++ b/sources/pyside2/PySide2/support/generate_pyi.py @@ -53,13 +53,6 @@ import re import subprocess import argparse import glob -# PYSIDE-953: Use a newer contextlib for Python 3.5 -skip_creation = False -if sys.version_info[:2] == (3, 5): - try: - import PySide2.support.signature # gets new contextlib - except: - skip_creation = True from contextlib import contextmanager from textwrap import dedent @@ -279,9 +272,6 @@ def single_process(lockdir): def generate_all_pyi(outpath, options): - if skip_creation: - logger.warn("Sorry, we cannot create .pyi files with Python 3.5 while PySide") - logger.warn(" is not installed. Please run it by hand!") ps = os.pathsep if options.sys_path: # make sure to propagate the paths from sys_path to subprocesses |
