From 1db2039f52a0d6ccb69986058aacddacfb9ba333 Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 27 Jan 2015 01:18:38 -0800 Subject: [PATCH] Fix PEP8 in mirror-all-snapshots --- src/etc/mirror-all-snapshots.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/etc/mirror-all-snapshots.py b/src/etc/mirror-all-snapshots.py index 3934c235e8c1..cd77f882140f 100644 --- a/src/etc/mirror-all-snapshots.py +++ b/src/etc/mirror-all-snapshots.py @@ -10,7 +10,7 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -import os, tarfile, hashlib, re, shutil +import os from snapshot import * f = open(snapshotfile) @@ -23,13 +23,14 @@ i = 0 for line in f.readlines(): i += 1 parsed = parse_line(i, line) - if (not parsed): continue + if not parsed: + continue if parsed["type"] == "snapshot": date = parsed["date"] rev = parsed["rev"] - elif rev != None and parsed["type"] == "file": + elif rev is not None and parsed["type"] == "file": platform = parsed["platform"] hsh = parsed["hash"] snap = full_snapshot_name(date, rev, platform, hsh)