Commit 6532065b authored by heltonbiker's avatar heltonbiker

Revert "ATOMNS" to "NS" in the scope of `atom` module.

parent 17342f5c
......@@ -36,7 +36,7 @@ import logging
logger = logging.getLogger('fastkml.atom')
from .config import etree
from .config import ATOMNS
from .config import ATOMNS as NS
from .config import LXML
import re
......@@ -88,7 +88,7 @@ class Link(object):
hreflang=None, title=None, length=None
):
if ns is None:
self.ns = ATOMNS
self.ns = NS
else:
self.ns = ns
self.href = href
......@@ -172,7 +172,7 @@ class _Person(object):
def __init__(self, ns=None, name=None, uri=None, email=None):
if ns is None:
self.ns = ATOMNS
self.ns = NS
else:
self.ns = ns
self.name = name
......
......@@ -567,12 +567,12 @@ class _Feature(_BaseObject):
s = TimeStamp(self.ns)
s.from_element(timestamp)
self._time_stamp = s
atom_link = element.find('%slink' % atom.ATOMNS)
atom_link = element.find('%slink' % atom.NS)
if atom_link is not None:
s = atom.Link()
s.from_element(atom_link)
self._atom_link = s
atom_author = element.find('%sauthor' % atom.ATOMNS)
atom_author = element.find('%sauthor' % atom.NS)
if atom_author is not None:
s = atom.Author()
s.from_element(atom_author)
......
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