diff options
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index d24dbcea..9df03c06 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -224,7 +224,7 @@ class XmlManifest(object): | |||
224 | if self.notice: | 224 | if self.notice: |
225 | notice_element = root.appendChild(doc.createElement('notice')) | 225 | notice_element = root.appendChild(doc.createElement('notice')) |
226 | notice_lines = self.notice.splitlines() | 226 | notice_lines = self.notice.splitlines() |
227 | indented_notice = ('\n'.join(" "*4 + line for line in notice_lines))[4:] | 227 | indented_notice = ('\n'.join(" " * 4 + line for line in notice_lines))[4:] |
228 | notice_element.appendChild(doc.createTextNode(indented_notice)) | 228 | notice_element.appendChild(doc.createTextNode(indented_notice)) |
229 | 229 | ||
230 | d = self.default | 230 | d = self.default |
@@ -855,7 +855,7 @@ class XmlManifest(object): | |||
855 | if clone_depth: | 855 | if clone_depth: |
856 | try: | 856 | try: |
857 | clone_depth = int(clone_depth) | 857 | clone_depth = int(clone_depth) |
858 | if clone_depth <= 0: | 858 | if clone_depth <= 0: |
859 | raise ValueError() | 859 | raise ValueError() |
860 | except ValueError: | 860 | except ValueError: |
861 | raise ManifestParseError('invalid clone-depth %s in %s' % | 861 | raise ManifestParseError('invalid clone-depth %s in %s' % |