From 98a40a432c3a9f9dd4d12763aed3209e0d45eedd Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 20 Jun 2020 23:33:16 +0200 Subject: [PATCH] Upgrade flake8/pyflakes for Py3 compatibility --- python/requirements.txt | 4 ++-- python/tidy/setup.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index 8ccc16dcce2..5942b6f94ed 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -11,9 +11,9 @@ setuptools == 39.0 toml == 0.9.2 # For Python linting -flake8 == 2.4.1 +flake8 == 3.8.3 pep8 == 1.5.7 -pyflakes == 0.8.1 +pyflakes == 2.2.0 # For buildbot checking voluptuous == 0.10.5 diff --git a/python/tidy/setup.py b/python/tidy/setup.py index 66229fe4c91..c6fe447fe1a 100644 --- a/python/tidy/setup.py +++ b/python/tidy/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages VERSION = '0.3.0' install_requires = [ - "flake8==2.4.1", + "flake8==3.8.3", "toml==0.9.2", "colorama==0.3.7", "voluptuous==0.11.5", @@ -26,13 +26,13 @@ here = os.path.dirname(os.path.abspath(__file__)) try: with open(os.path.join(here, 'README.rst')) as doc: readme = doc.read() -except: +except FileNotFoundError: readme = '' try: with open(os.path.join(here, 'HISTORY.rst')) as doc: history = doc.read() -except: +except FileNotFoundError: history = '' long_description = readme + '\n\n' + history