Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Reverting _compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat committed Nov 21, 2013
1 parent a5d608d commit 67b60ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions salt_cloud/saltcloud/_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
'''
Salt Cloud compatibility code
'''
try:
# Python >2.5
import xml.etree.cElementTree as ElementTree
except ImportError:
try:
# Python >2.5
import xml.etree.ElementTree as ElementTree
except ImportError:
try:
# normal cElementTree install
import elementtree.cElementTree as ElementTree
except ImportError:
try:
# normal ElementTree install
import elementtree.ElementTree as ElementTree
except ImportError:
raise
2 changes: 1 addition & 1 deletion salt_cloud/saltcloud/clouds/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
import urllib2

# Import salt libs
from salt._compat import ElementTree as ET
from saltcloud._compat import ElementTree as ET

# Import saltcloud libs
import saltcloud.utils
Expand Down
2 changes: 1 addition & 1 deletion salt_cloud/saltcloud/clouds/parallels.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Import salt libs
import salt.utils
from salt._compat import ElementTree as ET
from saltcloud._compat import ElementTree as ET

# Import salt cloud libs
import saltcloud.utils
Expand Down

0 comments on commit 67b60ce

Please sign in to comment.