Show More
@@ -92,6 +92,8 b' def encodecopies(files, copies):' | |||
|
92 | 92 | def decodecopies(files, data): |
|
93 | 93 | try: |
|
94 | 94 | copies = {} |
|
95 | if not data: | |
|
96 | return copies | |
|
95 | 97 | for l in data.split('\n'): |
|
96 | 98 | strindex, src = l.split('\0') |
|
97 | 99 | i = int(strindex) |
@@ -114,6 +116,8 b' def encodefileindices(files, subset):' | |||
|
114 | 116 | def decodefileindices(files, data): |
|
115 | 117 | try: |
|
116 | 118 | subset = [] |
|
119 | if not data: | |
|
120 | return subset | |
|
117 | 121 | for strindex in data.split('\n'): |
|
118 | 122 | i = int(strindex) |
|
119 | 123 | if i < 0 or i >= len(files): |
General Comments 0
You need to be logged in to leave comments.
Login now