Skip to content

Commit 333d647

Browse files
committed
---
yaml --- r: 177074 b: refs/heads/auto c: 1db2039 h: refs/heads/master v: v3
1 parent b3b8c6f commit 333d647

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: a4ab5e59a795bf2d736cd6436ba85685b479807b
13+
refs/heads/auto: 1db2039f52a0d6ccb69986058aacddacfb9ba333
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)