From b90ad3ce2048192bb4e5b594954a5fb608dbd833 Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Fri, 28 Sep 2018 21:16:21 -0400 Subject: [PATCH] py3 hack --- sandbox/shell.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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