diff options
author | Dan Timoney <dtimoney@att.com> | 2020-02-20 21:14:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-20 21:14:26 +0000 |
commit | 6a407a45c77662a42160462c8fa69261f3fc76b3 (patch) | |
tree | 8978922b2a24285eacd21e4afcc4cea5f3bc42f3 /dmaap/consulif/consulif.py | |
parent | 87d14cfc2cdcdfecbc75396d5347eae295bfb570 (diff) | |
parent | 9b7e81e78c70514aa123482610e274869b6ba137 (diff) |
Merge "Support python3 in all plugins"
Diffstat (limited to 'dmaap/consulif/consulif.py')
-rw-r--r-- | dmaap/consulif/consulif.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dmaap/consulif/consulif.py b/dmaap/consulif/consulif.py index 8033603..5c78b89 100644 --- a/dmaap/consulif/consulif.py +++ b/dmaap/consulif/consulif.py @@ -2,6 +2,7 @@ # org.onap.ccsdk # ============================================================================= # Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2020 Pantheon.tech. All rights reserved. # ============================================================================= # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +19,11 @@ import consul import json -from urlparse import urlparse +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse + class ConsulHandle(object): ''' |