Skip to content

Commit d5bc13e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4a50599 commit d5bc13e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from setuptools import setup
33

4-
with open('requirements.txt', 'r') as f:
4+
with open('requirements.txt') as f:
55
install_requires = f.read().strip().split()
66

77
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)

svglib/svglib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def parseMultiAttributes(self, line):
172172
new_attrs = {}
173173
for a in attrs:
174174
k, v = a.split(':')
175-
k, v = [s.strip() for s in (k, v)]
175+
k, v = (s.strip() for s in (k, v))
176176
new_attrs[k] = v
177177

178178
return new_attrs

0 commit comments

Comments
 (0)