diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-09-02 14:04:39 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-09-02 14:04:39 +0000 |
| commit | 135c910f06117adc1ccb14285b840684b1bd329a (patch) | |
| tree | 3145706b5858f22f3bcc03e9008a4e2b25e1c753 /python/qpid/util.py | |
| parent | 857ef723dd603f29b324570d9658283f7ec98e3c (diff) | |
| download | qpid-python-135c910f06117adc1ccb14285b840684b1bd329a.tar.gz | |
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
Diffstat (limited to 'python/qpid/util.py')
| -rw-r--r-- | python/qpid/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
