Fix black errors 22/13122/2
authorGulsum Atici <gulsum.atici@canonical.com>
Thu, 30 Mar 2023 19:06:18 +0000 (22:06 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Thu, 30 Mar 2023 21:11:14 +0000 (00:11 +0300)
Change-Id: I28e1e04f63f5a70f278371e7d0b552092eb70efc
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
osm_common/fsmongo.py
releasenotes/notes/fix_black_error-07ec1226c5764c70.yaml [new file with mode: 0644]

index 727410e..2b67cf3 100644 (file)
@@ -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 (file)
index 0000000..c0f6fc1
--- /dev/null
@@ -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.