python-modernize -f libmodernize.fixes.fix_file

This commit is contained in:
Tomas Kopecek 2017-05-03 11:42:09 +02:00
parent 68bf19c739
commit a4a1536a03
13 changed files with 58 additions and 58 deletions

View file

@ -51,7 +51,7 @@ def maven_import(cbtype, *args, **kws):
shutil.rmtree(tmpdir)
def expand_rpm(filepath, tmpdir):
devnull = file('/dev/null', 'r+')
devnull = open('/dev/null', 'r+')
rpm2cpio = subprocess.Popen(['/usr/bin/rpm2cpio', filepath],
stdout=subprocess.PIPE,
stdin=devnull, stderr=devnull,