1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pyterm: ugly hack to make twisted optional

This commit is contained in:
Oleg Hahm 2014-07-16 23:50:25 +02:00
parent 79844660a6
commit a6b276b734

View File

@ -5,9 +5,17 @@ try:
import configparser
except ImportError:
import ConfigParser as configparser
try:
from twisted.internet import reactor
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
except ImportError:
class Protocol():
def __init__(self):
pass
class ReconnectingClientFactory():
def __init__(self):
pass
from twisted.internet import reactor
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
import cmd, serial, socket, sys, threading, readline, time, logging, os, argparse, re, codecs, signal
### set some default options