Skip to content

Commit 6ea1166

Browse files
committed
Remove unnecessary encodeArgs function.
1 parent 6e1cc81 commit 6ea1166

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

master/buildbot/changes/gitpoller.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,8 @@ def _process_changes(self, newRev, branch):
339339
category=self.category, src=u'git')
340340

341341
def _dovccmd(self, command, args, path=None):
342-
def encodeArg(arg):
343-
if isinstance(arg, list):
344-
return [encodeArg(a) for a in arg]
345-
elif isinstance(arg, text_type):
346-
return arg.encode("ascii")
347-
return arg
348-
d = utils.getProcessOutputAndValue(encodeArg(self.gitbin),
349-
encodeArg([command] + args),
350-
path=encodeArg(path), env=os.environ)
342+
d = utils.getProcessOutputAndValue(self.gitbin,
343+
[command] + args, path=path, env=os.environ)
351344

352345
def _convert_nonzero_to_failure(res,
353346
command,

0 commit comments

Comments
 (0)