From 0153e92e7e583f3adca657f330b8642239862ffb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Dec 2022 02:25:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 2 +- svglib/svglib.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9eec0f0..676608f 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import sys from setuptools import setup -with open('requirements.txt', 'r') as f: +with open('requirements.txt') as f: install_requires = f.read().strip().split() needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) diff --git a/svglib/svglib.py b/svglib/svglib.py index da9bdad..b62df2e 100755 --- a/svglib/svglib.py +++ b/svglib/svglib.py @@ -172,7 +172,7 @@ def parseMultiAttributes(self, line): new_attrs = {} for a in attrs: k, v = a.split(':') - k, v = [s.strip() for s in (k, v)] + k, v = (s.strip() for s in (k, v)) new_attrs[k] = v return new_attrs