[Dive4elements-commits] [PATCH 06 of 15] (importer) Style: Remove some empty lines

Wald Commits scm-commit at wald.intevation.org
Mon Jan 28 12:27:33 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1359107018 -3600
# Node ID 884afa1491928cbddf0da834e67c519af285dacd
# Parent  37fa93f659713f3e9778149e8cd58bd7d20e4d90
(importer) Style: Remove some empty lines

diff -r 37fa93f65971 -r 884afa149192 flys-backend/contrib/shpimporter/importer.py
--- a/flys-backend/contrib/shpimporter/importer.py	Fri Jan 25 10:41:59 2013 +0100
+++ b/flys-backend/contrib/shpimporter/importer.py	Fri Jan 25 10:43:38 2013 +0100
@@ -17,19 +17,15 @@
     def getKind(self, path):
         raise NotImplementedError("Importer.getKind is abstract!")
 
-
     def getPath(self, base):
         raise NotImplementedError("Importer.getPath is abstract!")
 
-
     def getTablename(self):
         raise NotImplementedError("Importer.getTablename is abstract!")
 
-
     def getName(self):
         raise NotImplementedError("Importer.getTablename is abstract!")
 
-
     def IsFieldSet(self, feat, name):
         try:
             isset = feat.GetField(name)
@@ -45,11 +41,9 @@
         except:
             return False
 
-
     def isShapeRelevant(self, name, path):
         return True
 
-
     def walkOverShapes(self, shape):
         (name, path) = shape
         if not self.isShapeRelevant(name, path):
@@ -70,7 +64,6 @@
 
         return self.shape2Database(srcLayer, name, path)
 
-
     def transform(self, feat):
         geometry = feat.GetGeometryRef()
         src_srs  = geometry.GetSpatialReference()
@@ -84,7 +77,6 @@
 
         return feat
 
-
     def shape2Database(self, srcLayer, name, path):
         destLayer = self.dbconn.GetLayerByName(self.getTablename())
 
@@ -146,4 +138,3 @@
             shpimporter.ERROR("Exception while committing transaction.")
 
         return geomType
-


More information about the Dive4elements-commits mailing list