summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-07-24 16:18:37 -0400
committerPeter Jones <pjones@redhat.com>2009-08-06 14:37:46 -0400
commit4cbcf48202a7452a54034ab83d217f672e6dd27e (patch)
tree3c637a5d8acb6e463135b5d34266a4454a8db263
parentce1cf4970452fd03bf8168f38c66f0c3210a4890 (diff)
downloadanaconda-4cbcf48202a7452a54034ab83d217f672e6dd27e.tar.gz
anaconda-4cbcf48202a7452a54034ab83d217f672e6dd27e.tar.xz
anaconda-4cbcf48202a7452a54034ab83d217f672e6dd27e.zip
Get rid of Device.description, it is unused.
-rw-r--r--storage/devices.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/storage/devices.py b/storage/devices.py
index 9b9fd8e1b..f14842075 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -200,7 +200,7 @@ class Device(object):
_type = "generic device"
_packages = []
- def __init__(self, name, parents=None, description=''):
+ def __init__(self, name, parents=None):
""" Create a Device instance.
Arguments:
@@ -210,7 +210,6 @@ class Device(object):
Keyword Arguments:
parents -- a list of required Device instances
- description -- a string describing the device
"""
self._name = name
@@ -220,7 +219,6 @@ class Device(object):
raise ValueError("parents must be a list of Device instances")
self.parents = parents
self.kids = 0
- self.description = description
# Set this instance's id and increment the counter.
self.id = Device._id
@@ -250,14 +248,13 @@ class Device(object):
def __str__(self):
s = ("%(type)s instance (%(id)s) --\n"
- " description = %(descr)s name = %(name)s status = %(status)s"
+ " name = %(name)s status = %(status)s"
" parents = %(parents)s\n"
" kids = %(kids)s\n"
" id = %(dev_id)s\n" %
{"type": self.__class__.__name__, "id": "%#x" % id(self),
"name": self.name, "parents": self.parents, "kids": self.kids,
- "descr": self.description, "status": self.status,
- "dev_id": self.id})
+ "status": self.status, "dev_id": self.id})
return s
def writeKS(self, f, preexisting=False, noformat=False, s=None):
@@ -434,7 +431,6 @@ class StorageDevice(Device):
sysfsPath -- sysfs device path
format -- a DeviceFormat instance
parents -- a list of required Device instances
- description -- a string describing the device
"""
# allow specification of individual parents