File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 28
28
'data_files' : [("data" , [os .path .join ("d" , "e.dat" )])],
29
29
}
30
30
31
- SETUP_PY = """\
31
+ SETUP_PY = (
32
+ """\
32
33
from setuptools import setup
33
34
34
35
setup(**%r)
35
- """ % SETUP_ATTRS
36
+ """
37
+ % SETUP_ATTRS
38
+ )
36
39
37
40
38
41
@contextlib .contextmanager
@@ -451,8 +454,7 @@ def test_sdist_with_utf8_encoded_filename(self):
451
454
@classmethod
452
455
def make_strings (cls , item ):
453
456
if isinstance (item , dict ):
454
- return {
455
- key : cls .make_strings (value ) for key , value in item .items ()}
457
+ return {key : cls .make_strings (value ) for key , value in item .items ()}
456
458
if isinstance (item , list ):
457
459
return list (map (cls .make_strings , item ))
458
460
return str (item )
@@ -570,9 +572,11 @@ def test_default_revctrl():
570
572
This interface must be maintained until Ubuntu 12.04 is no longer
571
573
supported (by Setuptools).
572
574
"""
573
- ep , = metadata .EntryPoints ._from_text ("""
575
+ (ep ,) = metadata .EntryPoints ._from_text (
576
+ """
574
577
[setuptools.file_finders]
575
578
svn_cvs = setuptools.command.sdist:_default_revctrl
576
- """ )
579
+ """
580
+ )
577
581
res = ep .load ()
578
582
assert hasattr (res , '__iter__' )
You can’t perform that action at this time.
0 commit comments