Commit 272c6d25 authored by Christian Ledermann's avatar Christian Ledermann

Merge pull request #14 from IanLee1521/master

Fixed issue (line length) with kml.py that kept pep8 test from passing.
parents ac09999b b841b8a3
...@@ -17,7 +17,7 @@ install: ...@@ -17,7 +17,7 @@ install:
# command to run tests, e.g. python setup.py test # command to run tests, e.g. python setup.py test
script: script:
# - pep8 --exclude test_main.py fastkml - pep8 --exclude test_main.py fastkml
- coverage run --source=fastkml setup.py test - coverage run --source=fastkml setup.py test
after_success: after_success:
......
...@@ -577,7 +577,9 @@ class _Container(_Feature): ...@@ -577,7 +577,9 @@ class _Container(_Feature):
yield feature yield feature
else: else:
raise TypeError( raise TypeError(
"Features must be instances of (Folder, Placemark, Document)") "Features must be instances of "
"(Folder, Placemark, Document)"
)
def etree_element(self): def etree_element(self):
element = super(_Container, self).etree_element() element = super(_Container, self).etree_element()
...@@ -591,7 +593,8 @@ class _Container(_Feature): ...@@ -591,7 +593,8 @@ class _Container(_Feature):
self._features.append(kmlobj) self._features.append(kmlobj)
else: else:
raise TypeError( raise TypeError(
"Features must be instances of (Folder, Placemark, Document)" "Features must be instances of "
"(Folder, Placemark, Document)"
) )
assert(kmlobj != self) assert(kmlobj != self)
......
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