In Python3, the __builtin__ module is renamed to builtins.
https://docs.python.org/3/library/builtins.html#module-builtins
Signed-off-by: Radostin Stoyanov <rstoyanov1(a)gmail.com>
---
libvirt_sandbox_image/cli.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py
index 585df96..ec5fd6d 100644
--- a/libvirt_sandbox_image/cli.py
+++ b/libvirt_sandbox_image/cli.py
@@ -50,8 +50,8 @@ try:
localedir="/usr/share/locale",
codeset = 'utf-8')
except IOError:
- import __builtin__
- __builtin__.__dict__['_'] = unicode
+ import builtins
+ builtins.__dict__['_'] = str
def debug(msg):
--
2.14.3