Skip to content

Instantly share code, notes, and snippets.

@clayg
Created December 2, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/82411b8076303a2cd1a0 to your computer and use it in GitHub Desktop.
Save clayg/82411b8076303a2cd1a0 to your computer and use it in GitHub Desktop.
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