diff options
Diffstat (limited to 'qpid/python/examples/api/drain')
| -rwxr-xr-x | qpid/python/examples/api/drain | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qpid/python/examples/api/drain b/qpid/python/examples/api/drain index 5e30153bc2..2b15a50500 100755 --- a/qpid/python/examples/api/drain +++ b/qpid/python/examples/api/drain @@ -7,9 +7,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,12 @@ # import optparse -from qpid.messaging import * + +try: + from qpid_messaging import * +except: + from qpid.messaging import * + from qpid.util import URL from qpid.log import enable, DEBUG, WARN |
