mirror of https://github.com/scrapy/scrapy.git
Remove the Python version check from scrapy/__init__.py.
This commit is contained in:
parent
23b1214e90
commit
ed3a7acaf3
|
|
@ -27,5 +27,3 @@ repos:
|
|||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py38-plus, --keep-runtime-typing]
|
||||
# scrapy/__init__.py has a sys.version_info check we want to keep
|
||||
exclude: scrapy/__init__.py
|
||||
|
|
|
|||
|
|
@ -33,12 +33,6 @@ version_info = tuple(int(v) if v.isdigit() else v for v in __version__.split("."
|
|||
twisted_version = (_txv.major, _txv.minor, _txv.micro)
|
||||
|
||||
|
||||
# Check minimum required Python version
|
||||
if sys.version_info < (3, 8):
|
||||
print(f"Scrapy {__version__} requires Python 3.8+")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
# Ignore noisy twisted deprecation warnings
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning, module="twisted")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue