diff --git a/sandbox/shell.py b/sandbox/shell.py index 63c2b25..dd2814c 100755 --- a/sandbox/shell.py +++ b/sandbox/shell.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 """ Template application that uses the ConsoleCmd class. @@ -8,7 +8,10 @@ import sys import time import argparse -from StringIO import StringIO +try: + from StringIO import StringIO +except ImportError: + from io import StringIO from bacpypes.debugging import bacpypes_debugging, ModuleLogger from bacpypes.consolelogging import ArgumentParser