Commit e9bcd935 authored by Christian Ledermann's avatar Christian Ledermann

fix test for python 3.2

parent 7f35ca3a
...@@ -34,9 +34,9 @@ This library only implements a subset of Atom that is useful with KML ...@@ -34,9 +34,9 @@ This library only implements a subset of Atom that is useful with KML
import logging import logging
logger = logging.getLogger('fastkml.atom') logger = logging.getLogger('fastkml.atom')
from config import etree from .config import etree
from config import ATOMNS as NS from .config import ATOMNS as NS
from config import LXML from .config import LXML
import re import re
regex = r"^[a-zA-Z0-9._%-]+@([a-zA-Z0-9-]+\.)*[a-zA-Z]{2,4}$" regex = r"^[a-zA-Z0-9._%-]+@([a-zA-Z0-9-]+\.)*[a-zA-Z]{2,4}$"
......
...@@ -18,8 +18,12 @@ ...@@ -18,8 +18,12 @@
""" abstract base classes""" """ abstract base classes"""
import config try:
from config import etree import fastkml.config as config
except ImportError:
import config
from .config import etree
......
...@@ -40,10 +40,14 @@ except ImportError: ...@@ -40,10 +40,14 @@ except ImportError:
from pygeoif.geometry import GeometryCollection from pygeoif.geometry import GeometryCollection
from pygeoif.geometry import as_shape as asShape from pygeoif.geometry import as_shape as asShape
import config try:
from config import etree import fastkml.config as config
except ImportError:
import config
from .config import etree
from base import _BaseObject from .base import _BaseObject
import logging import logging
logger = logging.getLogger('fastkml.geometry') logger = logging.getLogger('fastkml.geometry')
......
...@@ -76,9 +76,9 @@ located at http://developers.google.com/kml/schema/kml22gx.xsd. ...@@ -76,9 +76,9 @@ located at http://developers.google.com/kml/schema/kml22gx.xsd.
import logging import logging
logger = logging.getLogger('fastkml.gx') logger = logging.getLogger('fastkml.gx')
from config import etree from .config import etree
from config import GXNS as NS from .config import GXNS as NS
from config import LXML from .config import LXML
...@@ -50,13 +50,13 @@ from .base import _BaseObject ...@@ -50,13 +50,13 @@ from .base import _BaseObject
from .styles import StyleUrl, Style, StyleMap, _StyleSelector from .styles import StyleUrl, Style, StyleMap, _StyleSelector
try: try:
import atom
import gx
import config
except ImportError:
import fastkml.atom as atom import fastkml.atom as atom
import fastkml.gx as gx import fastkml.gx as gx
import fastkml.config as config import fastkml.config as config
except ImportError:
import atom
import gx
import config
try: try:
unicode unicode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment