Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix imp python module for versions higher than 3.4 #1904

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Utils/WAAgentUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import imp
import os
import os.path
import sys

# imp was deprecated in python 3.4
if sys.version_info >= (3, 4):
import importlib as imp
else:
import imp

#
# The following code will search and load waagent code and expose
Expand Down