mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Fix PEP8.
This commit is contained in:
1 parent
589e591d3b
commit
8bcf776813
8 files changed
+5
-5
No files matched your search
@@ -275,6 +275,7 @@ class Layer(SQLSubModel):
|
||||
|
||||
self._sl.modified()
|
||||
|
||||
|
||||
class SedimentLayer(SQLSubModel):
|
||||
_sub_classes = [Layer]
|
||||
|
||||
|
||||
@@ -414,7 +414,6 @@ class SQLSubModel(PamhyrID):
|
||||
"""
|
||||
raise NotImplementedMethodeError(self, self._db_save)
|
||||
|
||||
|
||||
def _data_traversal(self,
|
||||
predicate=lambda obj, data: True,
|
||||
modifier=lambda obj, data: None,
|
||||
|
||||
@@ -83,7 +83,7 @@ class PamhyrModelList(SQLSubModel):
|
||||
return self.lst.index(el)
|
||||
|
||||
def get(self, index):
|
||||
if len(self.lst) <= index :
|
||||
if len(self.lst) <= index:
|
||||
return None
|
||||
|
||||
return self.lst[index]
|
||||
|
||||
Reference in new issue
Block a user