From ecc2b6e74257bce09a61cf5f4942fd59ea394dfe Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 30 Jun 2013 18:55:45 -0400 Subject: [PATCH] Styling: deprecation --- library/packaging/rhn_register | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/rhn_register b/library/packaging/rhn_register index 1a64041a59..defed9f618 100644 --- a/library/packaging/rhn_register +++ b/library/packaging/rhn_register @@ -172,7 +172,7 @@ class Rhn(RegistrationBase): # configuration. Yeah, I know this should be subclassed ... but, oh # well def get_option_default(self, key, default=''): - if self.has_key(key): + if 'key' in self: return self[key] else: return default