From: Gulsum Atici Date: Thu, 30 Mar 2023 19:06:18 +0000 (+0300) Subject: Fix black errors X-Git-Tag: v13.0.1~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F13122%2F2;p=osm%2Fcommon.git Fix black errors Change-Id: I28e1e04f63f5a70f278371e7d0b552092eb70efc Signed-off-by: Gulsum Atici --- diff --git a/osm_common/fsmongo.py b/osm_common/fsmongo.py index 727410e..2b67cf3 100644 --- a/osm_common/fsmongo.py +++ b/osm_common/fsmongo.py @@ -570,7 +570,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 @@ -615,7 +614,6 @@ class FsMongo(FsBase): remote_files.pop(rel_filename, None) if last_modified_date >= upload_date: - stream = None fh = None try: @@ -652,7 +650,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/releasenotes/notes/fix_black_error-07ec1226c5764c70.yaml b/releasenotes/notes/fix_black_error-07ec1226c5764c70.yaml new file mode 100644 index 0000000..c0f6fc1 --- /dev/null +++ b/releasenotes/notes/fix_black_error-07ec1226c5764c70.yaml @@ -0,0 +1,20 @@ +####################################################################################### +# Copyright ETSI Contributors and Others. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. +####################################################################################### +--- +other: + - | + Fixing Black code formatting errors.