[master 3/30] Make assignments that override abstract properties into simple attributes.

mulkieran installerbot-noreply at redhat.com
Wed Mar 25 22:47:41 UTC 2015


From: mulhern <amulhern at redhat.com>

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fslabeling.py | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/blivet/formats/fslabeling.py b/blivet/formats/fslabeling.py
index ef5b4ae..0abeaf7 100644
--- a/blivet/formats/fslabeling.py
+++ b/blivet/formats/fslabeling.py
@@ -61,8 +61,8 @@ def labelingArgs(self, label):
 
 class Ext2FSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "")
-    label_app = property(lambda s: fslabel.E2Label)
+    default_label = ""
+    label_app = fslabel.E2Label
 
     def labelFormatOK(self, label):
         return len(label) < 17
@@ -72,8 +72,8 @@ def labelingArgs(self, label):
 
 class FATFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "NO NAME")
-    label_app = property(lambda s: fslabel.DosFsLabel)
+    default_label = "NO NAME"
+    label_app = fslabel.DosFsLabel
 
     def labelFormatOK(self, label):
         return len(label) < 12
@@ -83,8 +83,8 @@ def labelingArgs(self, label):
 
 class JFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "")
-    label_app = property(lambda s: fslabel.JFSTune)
+    default_label = ""
+    label_app = fslabel.JFSTune
 
     def labelFormatOK(self, label):
         return len(label) < 17
@@ -94,8 +94,8 @@ def labelingArgs(self, label):
 
 class ReiserFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "")
-    label_app = property(lambda s: fslabel.ReiserFSTune)
+    default_label = ""
+    label_app = fslabel.ReiserFSTune
 
     def labelFormatOK(self, label):
         return len(label) < 17
@@ -105,8 +105,8 @@ def labelingArgs(self, label):
 
 class XFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "")
-    label_app = property(lambda s: fslabel.XFSAdmin)
+    default_label = ""
+    label_app = fslabel.XFSAdmin
 
     def labelFormatOK(self, label):
         return ' ' not in label and len(label) < 13
@@ -116,8 +116,8 @@ def labelingArgs(self, label):
 
 class HFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "Untitled")
-    label_app = property(lambda s: None)
+    default_label = "Untitled"
+    label_app = None
 
     def labelFormatOK(self, label):
         return ':' not in label and len(label) < 28 and len(label) > 0
@@ -127,8 +127,8 @@ def labelingArgs(self, label):
 
 class HFSPlusLabeling(FSLabeling):
 
-    default_label = property(lambda s: "Untitled")
-    label_app = property(lambda s: None)
+    default_label = "Untitled"
+    label_app = None
 
     def labelFormatOK(self, label):
         return ':' not in label and 0 < len(label) < 129
@@ -138,8 +138,8 @@ def labelingArgs(self, label):
 
 class NTFSLabeling(FSLabeling):
 
-    default_label = property(lambda s: "")
-    label_app = property(lambda s: fslabel.NTFSLabel)
+    default_label = ""
+    label_app = fslabel.NTFSLabel
 
     def labelFormatOK(self, label):
         return len(label) < 129


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/ddd5921f912c5b18106237234f0d5cba5975fb4f


More information about the anaconda-patches mailing list