From 5510cffac5cc04726d961fd6996233538ba43bb1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 08:08:59 +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 727b669..5c7ab1a 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