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:
parent
79844660a6
commit
a6b276b734
12
dist/tools/pyterm/pyterm.py
vendored
12
dist/tools/pyterm/pyterm.py
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user