diff options
Diffstat (limited to 'qpid/python/qpid/messaging/endpoints.py')
| -rw-r--r-- | qpid/python/qpid/messaging/endpoints.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging/endpoints.py b/qpid/python/qpid/messaging/endpoints.py index eb4c196ee8..5b10fbd9f1 100644 --- a/qpid/python/qpid/messaging/endpoints.py +++ b/qpid/python/qpid/messaging/endpoints.py @@ -778,9 +778,11 @@ class Session(Endpoint): finally: self.connection._remove_session(self) +class MangledString(str): pass + def _mangle(addr): if addr and addr.startswith("#"): - return str(uuid4()) + addr + return MangledString(str(uuid4()) + addr) else: return addr |
