aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/exceptions.py')
-rw-r--r--lib/bb/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/exceptions.py b/lib/bb/exceptions.py
index eadfc5715..cd713439e 100644
--- a/lib/bb/exceptions.py
+++ b/lib/bb/exceptions.py
@@ -86,6 +86,6 @@ def format_exception(etype, value, tb, context=1, limit=None, formatter=None):
def to_string(exc):
if isinstance(exc, SystemExit):
- if not isinstance(exc.code, basestring):
+ if not isinstance(exc.code, str):
return 'Exited with "%d"' % exc.code
return str(exc)