Created
August 26, 2015 14:02
-
-
Save Carreau/13a3e0bbd587c966cca3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/ptpython/ipython.py in raw_input(sel) | |
196 print('') | |
197 try: | |
--> 198 string = self._cli.run().text | |
199 acs 2/2 [F6] Paste mode (off) [F2] Options - CPython 3.4.3 | |
200 # In case of multiline input, make sure to append a newline to the input, | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/interface.py in run(s) | |
272 self._redraw() | |
273 | |
--> 274 self.eventloop.run(self.input, self.create_eventloop_callbacks()) | |
275 finally: | |
276 # Clean up renderer. (This will leave the alternate screen, if we use | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/eventloop/posix.py in) | |
85 # Feed input text. | |
86 data = stdin_reader.read() | |
---> 87 inputstream.feed(data) | |
88 callbacks.redraw() | |
89 | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_input.) | |
300 if c == '\r': | |
301 c = '\n' | |
--> 302 self._input_parser.send(c) | |
303 | |
304 def flush(self): | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_input.) | |
252 # Exact matches found, call handlers.. | |
253 if (flush or not is_prefix_of_longer_match) and match: | |
--> 254 self._call_handler(match, prefix) | |
255 prefix = '' | |
256 | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_input.) | |
281 self._call_handler(k, insert_text) | |
282 else: | |
--> 283 self.feed_key_callback(KeyPress(key, insert_text)) | |
284 | |
285 def feed(self, data): | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/interface.py in feed_) | |
605 """ | |
606 # Feed the key and redraw. | |
--> 607 self.cli.input_processor.feed_key(key_press) | |
608 | |
609 def redraw(self): | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/input_pro) | |
163 self.beforeKeyPress.fire() | |
164 | |
--> 165 self._process_coroutine.send(key_press) | |
166 | |
167 if key_press.key != Keys.CPRResponse: | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/input_pro) | |
135 # Exact matches found, call handler. | |
136 if not is_prefix_of_longer_match and matches: | |
--> 137 self._call_handler(matches[-1], key_sequence=buffer) | |
138 buffer = [] | |
139 | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/input_pro) | |
174 event = Event(weakref.ref(self), arg=arg, key_sequence=key_sequence, | |
175 previous_key_sequence=self._previous_key_sequence) | |
--> 176 handler.call(event) | |
177 self._registry.on_handler_called.fire(event) | |
178 | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/registry.) | |
24 | |
25 def call(self, event): | |
---> 26 return self._handler(event) | |
27 | |
28 def __repr__(self): | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/bindings/) | |
28 if safe_before: | |
29 event.cli.current_buffer.save_to_undo_stack() | |
---> 30 handler_func(event) | |
31 return handler_func | |
32 return decorator | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/key_binding/bindings/) | |
177 else: | |
178 if b.accept_action.is_returnable: | |
--> 179 b.accept_action.validate_and_handle(event.cli, b) | |
180 | |
181 @handle(Keys.ControlK, filter= ~has_selection) | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/buffer.py in validate) | |
71 self.handler(cli, buffer) | |
72 | |
---> 73 buffer.append_to_history() | |
74 | |
75 | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/buffer.py in append_t) | |
898 # history is already the same.) | |
899 if self.text and (not len(self._history) or self._history[-1] != self.text): | |
--> 900 self._history.append(self.text) | |
901 | |
902 def _search(self, search_state, include_current_position=False, count=1): | |
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/history.py in append() | |
70 | |
71 # Save to file. | |
---> 72 with open(self.filename, 'ab') as f: | |
73 write = lambda t: f.write(t.encode('utf-8')) | |
74 | |
FileNotFoundError: [Errno 2] No such file or directory: '/Users/bussonniermatthias/.ptpython/history' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment