FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-29-2011, 05:44 PM
Chris Lumens
 
Default Disable error reporting for properties with the .setter syntax.

pylint doesn't know how to deal with these. See:

http://www.logilab.org/ticket/51222
---
pyanaconda/bootloader.py | 11 +++++++++++
pyanaconda/dispatch.py | 2 ++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index ab89d51..31a78c8 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -196,6 +196,7 @@ class BootLoader(object):
#
# stage1 device access
#
+ # pylint: disable-msg=E0202
@property
def stage1_device(self):
""" Stage1 target device. """
@@ -213,6 +214,7 @@ class BootLoader(object):

return self._stage1_device

+ # pylint: disable-msg=E0102,E0202,E1101
@stage1_device.setter
def stage1_device(self, device):
log.debug("new bootloader stage1 device: %s" % getattr(device,
@@ -221,6 +223,7 @@ class BootLoader(object):
if device:
self.stage1_drive = device.disks[0]

+ # pylint: disable-msg=E0202
@property
def stage2_device(self):
""" Stage2 target device. """
@@ -229,11 +232,13 @@ class BootLoader(object):
#
# drive list access
#
+ # pylint: disable-msg=E0202
@property
def drive_order(self):
"""Potentially partial order for drives."""
return self._drive_order

+ # pylint: disable-msg=E0102,E0202,E1101
@drive_order.setter
def drive_order(self, order):
log.debug("new drive order: %s" % order)
@@ -278,6 +283,7 @@ class BootLoader(object):
#
# image list access
#
+ # pylint: disable-msg=E0202
@property
def default(self):
"""The default image."""
@@ -293,6 +299,7 @@ class BootLoader(object):

return self._default_image

+ # pylint: disable-msg=E0102,E0202,E1101
@default.setter
def default(self, image):
if image not in self.images:
@@ -709,6 +716,7 @@ class BootLoader(object):
def has_windows(self):
return False

+ # pylint: disable-msg=E0202
@property
def timeout(self):
"""Bootloader timeout in seconds."""
@@ -721,14 +729,17 @@ class BootLoader(object):

return t

+ # pylint: disable-msg=E0102,E0202,E1101
@timeout.setter
def timeout(self, seconds):
self._timeout = seconds

+ # pylint: disable-msg=E0202
@property
def update_only(self):
return self._update_only

+ # pylint: disable-msg=E0102,E0202,E1101
@update_only.setter
def update_only(self, value):
if value and not self.can_update:
diff --git a/pyanaconda/dispatch.py b/pyanaconda/dispatch.py
index 820a92b..900950f 100644
--- a/pyanaconda/dispatch.py
+++ b/pyanaconda/dispatch.py
@@ -208,10 +208,12 @@ class Dispatcher(object):
i -= 1
return False

+ #pylint: disable-msg=E0202
@property
def dir(self):
return self.anaconda.dir

+ # pylint: disable-msg=E0102,E0202,E1101
@dir.setter
def dir(self, dir):
if dir not in [DISPATCH_BACK, DISPATCH_FORWARD, DISPATCH_DEFAULT]:
--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org