mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
pyterm: ugly hack to make twisted optional
This commit is contained in:
parent
79844660a6
commit
a6b276b734
10
dist/tools/pyterm/pyterm.py
vendored
10
dist/tools/pyterm/pyterm.py
vendored
@ -5,9 +5,17 @@ try:
|
|||||||
import configparser
|
import configparser
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import ConfigParser as configparser
|
import ConfigParser as configparser
|
||||||
|
try:
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
|
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
|
||||||
|
except ImportError:
|
||||||
|
class Protocol():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
class ReconnectingClientFactory():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
import cmd, serial, socket, sys, threading, readline, time, logging, os, argparse, re, codecs, signal
|
import cmd, serial, socket, sys, threading, readline, time, logging, os, argparse, re, codecs, signal
|
||||||
|
|
||||||
### set some default options
|
### set some default options
|
||||||
|
Loading…
Reference in New Issue
Block a user