Created
December 2, 2015 21:38
-
-
Save clayg/82411b8076303a2cd1a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py | |
index 5fa2461..2e38b38 100644 | |
--- a/swift/obj/diskfile.py | |
+++ b/swift/obj/diskfile.py | |
@@ -2096,6 +2096,8 @@ class DiskFileManager(BaseDiskFileManager): | |
[accepted_files.get(ext) | |
for ext in ('.data', '.meta', '.ts')]) | |
+ assert not any([data_file, meta_file, ts_file]) | |
+ | |
return ((data_file is None and meta_file is None and ts_file is None) | |
or (ts_file is not None and data_file is None | |
and meta_file is None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment