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