Skip to content

Commit f77896c

Browse files
committed
---
yaml --- r: 177005 b: refs/heads/master c: 1db2039 h: refs/heads/master i: 177003: 4e924bf v: v3
1 parent 09e053a commit f77896c

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a4ab5e59a795bf2d736cd6436ba85685b479807b
2+
refs/heads/master: 1db2039f52a0d6ccb69986058aacddacfb9ba333
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a45e117733b866302fa99390553d1c548508dcca
55
refs/heads/try: fde4472848b662a4d1236388c4cf15e2450237e6

trunk/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)