Bug 814796 - Fix NameError when reporting an error. r=glandium

File "c:\mozilla-build\pymake\pymake\data.py", line 1417, in __call__
raise DataError("native command '%s': shell metacharacter '%s' in command line" % (cline, badchar), self.loc)
NameError: global name 'cline' is not defined
This commit is contained in:
Benjamin Smedberg 2012-12-11 16:37:07 +01:00
parent 80eef9ec5f
commit e837b18c07

View File

@ -1414,9 +1414,9 @@ class _NativeWrapper(_CommandWrapper):
# get the module and method to call
parts, badchar = process.clinetoargv(self.cline, self.kwargs['cwd'])
if parts is None:
raise DataError("native command '%s': shell metacharacter '%s' in command line" % (cline, badchar), self.loc)
raise DataError("native command '%s': shell metacharacter '%s' in command line" % (self.cline, badchar), self.loc)
if len(parts) < 2:
raise DataError("native command '%s': no method name specified" % cline, self.loc)
raise DataError("native command '%s': no method name specified" % self.cline, self.loc)
module = parts[0]
method = parts[1]
cline_list = parts[2:]