mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01:00
patman: Drop Python 2 StringIO code
We can rely on Python 3 now, so drop the workaround for importing StringIO. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -10,10 +10,7 @@ import sys
|
||||
|
||||
import command
|
||||
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
from io import StringIO
|
||||
|
||||
PYTHON = 'python%d' % sys.version_info[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user