From 135c910f06117adc1ccb14285b840684b1bd329a Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 2 Sep 2009 14:04:39 +0000 Subject: split out driver and utility code from messaging.py; added _ to private methods within messaging.py git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@810508 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/util.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/qpid/util.py') diff --git a/python/qpid/util.py b/python/qpid/util.py index c46716b88f..3409d777f9 100644 --- a/python/qpid/util.py +++ b/python/qpid/util.py @@ -134,3 +134,9 @@ class URL: if self.port: s += ":%s" % self.port return s + +def default(value, default): + if value is None: + return default + else: + return value -- cgit v1.2.1