mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
patman: Avoid circular dependency between command and tools
This seems to cause problems in some cases. Split the dependency by copying the code to command. Reported-by: Stefan Bosch <stefan_b@posteo.net> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from patman import cros_subprocess
|
from patman import cros_subprocess
|
||||||
from patman import tools
|
|
||||||
|
|
||||||
"""Shell command ease-ups for Python."""
|
"""Shell command ease-ups for Python."""
|
||||||
|
|
||||||
@@ -35,9 +34,9 @@ class CommandResult:
|
|||||||
|
|
||||||
def ToOutput(self, binary):
|
def ToOutput(self, binary):
|
||||||
if not binary:
|
if not binary:
|
||||||
self.stdout = tools.ToString(self.stdout)
|
self.stdout = self.stdout.decode('utf-8')
|
||||||
self.stderr = tools.ToString(self.stderr)
|
self.stderr = self.stderr.decode('utf-8')
|
||||||
self.combined = tools.ToString(self.combined)
|
self.combined = self.combined.decode('utf-8')
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user