summaryrefslogtreecommitdiff
path: root/realtime/rt
diff options
context:
space:
mode:
authorMichael Denkowski <mdenkows@cs.cmu.edu>2013-09-30 23:34:04 -0700
committerMichael Denkowski <mdenkows@cs.cmu.edu>2013-09-30 23:34:04 -0700
commit4830491825f0c8740d505c192d60b388f64acf1b (patch)
tree560065e3ab75b1ed7abdb781c7d452532fc4a0d8 /realtime/rt
parent8eb6dc27e27d03eefdf29efad4b6092d56ad3006 (diff)
Loading state moved to command, specific to context
Diffstat (limited to 'realtime/rt')
-rw-r--r--realtime/rt/rt.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/realtime/rt/rt.py b/realtime/rt/rt.py
index 40305f66..43cc43b4 100644
--- a/realtime/rt/rt.py
+++ b/realtime/rt/rt.py
@@ -56,7 +56,7 @@ class RealtimeDecoder:
class RealtimeTranslator:
'''Main entry point into API: serves translations to any number of concurrent users'''
- def __init__(self, configdir, tmpdir='/tmp', cache_size=5, norm=False, state=None):
+ def __init__(self, configdir, tmpdir='/tmp', cache_size=5, norm=False):
# name -> (method, set of possible nargs)
self.COMMANDS = {
@@ -117,11 +117,6 @@ class RealtimeTranslator:
self.decoders = {}
- # Load state if given
- if state:
- with open(state) as input:
- self.load_state(input)
-
def __enter__(self):
return self