From 54f9bcb55cf58fb22b527493c74f26621248ad35 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Thu, 30 Mar 2023 18:14:48 +0300 Subject: [PATCH] Fixing black errors Change-Id: Idc67bad0a10cf9c2d26d6c9f1dc1b937c4559cfd Signed-off-by: Gulsum Atici --- osm_common/fsmongo.py | 3 --- osm_common/tests/test_dbbase.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/osm_common/fsmongo.py b/osm_common/fsmongo.py index ff37c42..21a5d67 100644 --- a/osm_common/fsmongo.py +++ b/osm_common/fsmongo.py @@ -511,7 +511,6 @@ class FsMongo(FsBase): self.__update_local_fs(from_path=from_path) def _update_mongo_fs(self, from_path): - os_path = self.path + from_path # Obtain list of files and dirs in filesystem @@ -554,7 +553,6 @@ class FsMongo(FsBase): remote_files.pop(rel_filename, None) if last_modified_date >= upload_date: - stream = None fh = None try: @@ -589,7 +587,6 @@ class FsMongo(FsBase): self.fs.delete(file._id) def _get_mongo_files(self, from_path=None): - file_dict = {} file_cursor = self.fs.find(no_cursor_timeout=True, sort=[("uploadDate", -1)]) for file in file_cursor: diff --git a/osm_common/tests/test_dbbase.py b/osm_common/tests/test_dbbase.py index 117350e..133cb05 100644 --- a/osm_common/tests/test_dbbase.py +++ b/osm_common/tests/test_dbbase.py @@ -124,10 +124,6 @@ class TestEncryption(unittest.TestCase): TEST = ( ("plain text 1 ! ", None), ("plain text 2 with salt ! ", "1afd5d1a-4a7e-4d9c-8c65-251290183106"), - ("plain text 3 with usalt ! ", u"1afd5d1a-4a7e-4d9c-8c65-251290183106"), - (u"plain unicode 4 ! ", None), - (u"plain unicode 5 with salt ! ", "1a000d1a-4a7e-4d9c-8c65-251290183106"), - (u"plain unicode 6 with usalt ! ", u"1abcdd1a-4a7e-4d9c-8c65-251290183106"), ) for db_base in self.db_bases: for value, salt in TEST: -- 2.25.1