mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-16 12:10:29 +03:00
Remove path workarounds for old python versions
This commit is contained in:
parent
c5ba4bc848
commit
4a581bdfb6
11 changed files with 79 additions and 110 deletions
|
|
@ -349,12 +349,10 @@ class MetadataTest(unittest.TestCase):
|
|||
random.shuffle(randomapps)
|
||||
i = 1
|
||||
for f in randomapps:
|
||||
# TODO: Pytohn3.6: The parameter now accepts a path-like object.
|
||||
shutil.copy(str(f), str(metadatadir))
|
||||
shutil.copy(f, metadatadir)
|
||||
new = metadatadir / f.name
|
||||
stat = new.stat()
|
||||
# TODO: Changed in version 3.6: Accepts a path-like object.
|
||||
os.utime(str(new), (stat.st_ctime, stat.st_mtime + i))
|
||||
os.utime(new, (stat.st_ctime, stat.st_mtime + i))
|
||||
# prepend new item so newest is always first
|
||||
randomlist = [f.stem] + randomlist
|
||||
i += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue