summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-09-24 12:15:13 +0900
committerGustaf Lundh <gustaf.lundh@sonymobile.com>2012-10-09 12:45:30 +0200
commit8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (patch)
tree22f6971e8d3c4a90d11d3704602d073a852328b4 /manifest_xml.py
parente3b1c45aebed329cbc9ad172b1d8e812cf208117 (diff)
downloadgit-repo-8a68ff96057ec58e524a3e41a2d8dca7b5d016bc.tar.gz
Coding style cleanup
Fix the following issues reported by pylint: C0321: More than one statement on a single line W0622: Redefining built-in 'name' W0612: Unused variable 'name' W0613: Unused argument 'name' W0102: Dangerous default value 'value' as argument W0105: String statement has no effect Also fixed a few cases of inconsistent indentation. Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index a6364a77..12072441 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -113,7 +113,7 @@ class XmlManifest(object):
113 if os.path.exists(self.manifestFile): 113 if os.path.exists(self.manifestFile):
114 os.remove(self.manifestFile) 114 os.remove(self.manifestFile)
115 os.symlink('manifests/%s' % name, self.manifestFile) 115 os.symlink('manifests/%s' % name, self.manifestFile)
116 except OSError, e: 116 except OSError:
117 raise ManifestParseError('cannot link manifest %s' % name) 117 raise ManifestParseError('cannot link manifest %s' % name)
118 118
119 def _RemoteToXml(self, r, doc, root): 119 def _RemoteToXml(self, r, doc, root):
@@ -589,7 +589,6 @@ class XmlManifest(object):
589 groups.extend(set(default_groups).difference(groups)) 589 groups.extend(set(default_groups).difference(groups))
590 590
591 if self.IsMirror: 591 if self.IsMirror:
592 relpath = None
593 worktree = None 592 worktree = None
594 gitdir = os.path.join(self.topdir, '%s.git' % name) 593 gitdir = os.path.join(self.topdir, '%s.git' % name)
595 else: 594 else: