summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/pysh/interp.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:30:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:02 +0100
commit0f2c59367a649de5f57acdccfb4f1fdba9cde730 (patch)
tree7a3558a3e08e690fbb0b5bdc4044316f9ab4bbcb /bitbake/lib/bb/pysh/interp.py
parentef1df516512587ad415f76a9626620992d660e45 (diff)
downloadpoky-0f2c59367a649de5f57acdccfb4f1fdba9cde730.tar.gz
bitbake: bitbake: Convert to python 3
Various misc changes to convert bitbake to python3 which don't warrant separation into separate commits. (Bitbake rev: d0f904d407f57998419bd9c305ce53e5eaa36b24) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/pysh/interp.py')
-rw-r--r--bitbake/lib/bb/pysh/interp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/pysh/interp.py b/bitbake/lib/bb/pysh/interp.py
index 25d8c92ec4..d14ecf3c6d 100644
--- a/bitbake/lib/bb/pysh/interp.py
+++ b/bitbake/lib/bb/pysh/interp.py
@@ -474,7 +474,7 @@ class Environment:
474 """ 474 """
475 # Save and remove previous arguments 475 # Save and remove previous arguments
476 prevargs = [] 476 prevargs = []
477 for i in xrange(int(self._env['#'])): 477 for i in range(int(self._env['#'])):
478 i = str(i+1) 478 i = str(i+1)
479 prevargs.append(self._env[i]) 479 prevargs.append(self._env[i])
480 del self._env[i] 480 del self._env[i]
@@ -488,7 +488,7 @@ class Environment:
488 return prevargs 488 return prevargs
489 489
490 def get_positional_args(self): 490 def get_positional_args(self):
491 return [self._env[str(i+1)] for i in xrange(int(self._env['#']))] 491 return [self._env[str(i+1)] for i in range(int(self._env['#']))]
492 492
493 def get_variables(self): 493 def get_variables(self):
494 return dict(self._env) 494 return dict(self._env)