diff options
Diffstat (limited to 'bitbake/lib/bb/pysh/interp.py')
-rw-r--r-- | bitbake/lib/bb/pysh/interp.py | 4 |
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) |