diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-01-27 01:18:38 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-01-27 01:26:03 -0800 |
| commit | 1db2039f52a0d6ccb69986058aacddacfb9ba333 (patch) | |
| tree | 4a2e32d261d8012c803ac38024168472e2f65add /src/etc | |
| parent | a4ab5e59a795bf2d736cd6436ba85685b479807b (diff) | |
| download | rust-1db2039f52a0d6ccb69986058aacddacfb9ba333.tar.gz rust-1db2039f52a0d6ccb69986058aacddacfb9ba333.zip | |
Fix PEP8 in mirror-all-snapshots
Diffstat (limited to 'src/etc')
| -rw-r--r-- | src/etc/mirror-all-snapshots.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/etc/mirror-all-snapshots.py b/src/etc/mirror-all-snapshots.py index 3934c235e8c..cd77f882140 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) |
