Improve pep8 conformance

This commit is contained in:
jvoisin 2016-04-18 01:40:17 +02:00
parent 9bfde7dfcc
commit 17e389b800
8 changed files with 6 additions and 12 deletions

View file

@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import tempfile
import os
class MockSubprocess():
@ -31,9 +32,7 @@ class MockSubprocess():
def write_tempfile(text):
tempdir = tempfile.mkdtemp()
path = tempdir + "/test-file.txt"
path = os.path.join(tempfile.mkdtemp(), "/test-file.txt")
with open(path, "w") as f:
f.write(text)
f.close()
return path