Skip to content

Commit 1eb9a9f

Browse files
author
Sean Trott
committed
Transport now handles input() blocking, agents no longer deal explicitly with JSON.
1 parent 47d49b4 commit 1eb9a9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/nluas/language/user_agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ def clarify_ntuple(self, ntuple, descriptor):
203203
new[key] = value
204204
return new
205205

206-
"""
206+
207207
def prompt(self):
208208
while True:
209209
s = input("> ")
210210
if s == "q":
211211
self.transport.quit_federation()
212212
quit()
213-
"""
213+
214214

215215
def check_spelling(self, msg):
216216
table = self.spell_checker.spell_check(msg)
@@ -229,6 +229,6 @@ def check_spelling(self, msg):
229229

230230
if __name__ == "__main__":
231231
ui = UserAgent(sys.argv[1:])
232-
#ui.prompt()
232+
ui.prompt()
233233

234234

0 commit comments

Comments
 (0)