Skip to content

Commit 1db2039

Browse files
committed
Fix PEP8 in mirror-all-snapshots
1 parent a4ab5e5 commit 1db2039

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/etc/mirror-all-snapshots.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# option. This file may not be copied, modified, or distributed
1111
# except according to those terms.
1212

13-
import os, tarfile, hashlib, re, shutil
13+
import os
1414
from snapshot import *
1515

1616
f = open(snapshotfile)
@@ -23,13 +23,14 @@
2323
for line in f.readlines():
2424
i += 1
2525
parsed = parse_line(i, line)
26-
if (not parsed): continue
26+
if not parsed:
27+
continue
2728

2829
if parsed["type"] == "snapshot":
2930
date = parsed["date"]
3031
rev = parsed["rev"]
3132

32-
elif rev != None and parsed["type"] == "file":
33+
elif rev is not None and parsed["type"] == "file":
3334
platform = parsed["platform"]
3435
hsh = parsed["hash"]
3536
snap = full_snapshot_name(date, rev, platform, hsh)

0 commit comments

Comments
 (0)