Show More
@@ -82,8 +82,14 b' class AttachmentManager(models.Manager):' | |||
|
82 | 82 | chunk2ended = True |
|
83 | 83 | |
|
84 | 84 | if chunk1ended and chunk2ended: |
|
85 | # Same size chunksm checked for equality previously | |
|
86 | break | |
|
87 | elif chunk1ended or chunk2ended: | |
|
88 | # Different size chunks, not equal | |
|
89 | equal = False | |
|
85 | 90 | break |
|
86 | 91 | elif chunk1[position1] != chunk2[position2]: |
|
92 | # Different bytes, not equal | |
|
87 | 93 | equal = False |
|
88 | 94 | break |
|
89 | 95 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now