mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
py3 hack
This commit is contained in:
parent
7609d6e140
commit
b90ad3ce20
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user