From 2b8febe54a7f228fb62a5450ca1e2271955a178f Mon Sep 17 00:00:00 2001 From: Anthony Mahanna <43019056+aMahanna@users.noreply.github.com> Date: Fri, 19 Jan 2024 09:45:52 -0500 Subject: [PATCH] fix print statement (#15) * fix print statement * nit: use `not` instead of `is False` --- arango_datasets/datasets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arango_datasets/datasets.py b/arango_datasets/datasets.py index 69c6135..f6978cf 100644 --- a/arango_datasets/datasets.py +++ b/arango_datasets/datasets.py @@ -157,10 +157,9 @@ def __initialize_collection( :return: The collection. :rtype: arango.collection.StandardCollection """ - if self.preserve_existing is False: - m = f"Collection '{collection_name}' already exists, dropping and creating with new data." # noqa: E501 - print(m) + print(f"Initializing collection '{collection_name}'") + if not self.preserve_existing: self.user_db.delete_collection(collection_name, ignore_missing=True) return self.user_db.create_collection(collection_name, edge=is_edge)