[Git][reproducible-builds/diffoscope][master] No need to use str.format if we are just returning the string.

Chris Lamb gitlab at salsa.debian.org
Mon Feb 24 19:57:02 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
adbd7f76 by Chris Lamb at 2020-02-24T11:56:15-08:00
No need to use str.format if we are just returning the string.

- - - - -


1 changed file:

- tests/comparators/test_zst.py


Changes:

=====================================
tests/comparators/test_zst.py
=====================================
@@ -31,7 +31,7 @@ from ..utils.tools import skip_unless_tools_exist
 def zst_fixture(prefix):
     @pytest.fixture
     def zstd(tmpdir):
-        input_ = str(tmpdir.join('{}'.format(prefix)))
+        input_ = str(tmpdir.join(prefix))
         output = str(tmpdir.join('{}.zst'.format(prefix)))
 
         with open(input_, 'w') as f:



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/adbd7f766452ed412c1f0db8161cd86097861192

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/adbd7f766452ed412c1f0db8161cd86097861192
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200224/1c656965/attachment.htm>


More information about the rb-commits mailing list