bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def _format_as_columns(self, items, separator=' '): """ Transform a list of strings into a single string with columns.
def _format_as_columns(self, items, separator=' '): """ Transform a list of strings into a single string with columns.
463,200
def prompt_to_top(self): """ Moves the prompt to the top of the viewport. """ if not self._executing: self._set_top_cursor(self._get_prompt_cursor())
def prompt_to_top(self): """ Moves the prompt to the top of the viewport. """ if not self._executing: prompt_cursor = self._get_prompt_cursor() if self._get_cursor().blockNumber() < prompt_cursor.blockNumber(): self._set_cursor(prompt_cursor) self._set_top_cursor(prompt_cursor)
463,201
def _page(self, text, html=False): """ Displays text using the pager if it exceeds the height of the viewport.
def _page(self, text, html=False): """ Displays text using the pager if it exceeds the height of the viewport.
463,202
def _page(self, text, html=False): """ Displays text using the pager if it exceeds the height of the viewport.
def _page(self, text, html=False): """ Displays text using the pager if it exceeds the height of the viewport.
463,203
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
463,204
def __init__(self, block, length, number): self.block = block self.length = length self.number = number
def_input_splitter_class = IPythonInputSplitter __init__(self,_input_splitter_class = IPythonInputSplitter block,_input_splitter_class = IPythonInputSplitter length,_input_splitter_class = IPythonInputSplitter number):_input_splitter_class = IPythonInputSplitter self.block_input_splitter_class = IPythonInputSplitter =_...
463,205
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
463,206
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
463,207
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
def _adjust_scrollbars(self): """ Expands the vertical scrollbar beyond the range set by Qt. """ # This code is adapted from _q_adjustScrollbars in qplaintextedit.cpp # and qtextedit.cpp. document = self._control.document() scrollbar = self._control.verticalScrollBar() viewport_height = self._control.viewport().height(...
463,208
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,209
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,210
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,211
def __init__(self, parent=None): QtGui.QPlainTextEdit.__init__(self, parent)
def __init__(self, parent=None): QtGui.QPlainTextEdit.__init__(self, parent)
463,212
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
463,213
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
463,214
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
def keyPressEvent(self, event): """ Reimplemented to create a console-like interface. """ intercepted = False cursor = self.textCursor() position = cursor.position() key = event.key() ctrl_down = event.modifiers() & QtCore.Qt.ControlModifier alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifi...
463,215
def _prompt_started(self): """ Called immediately after a new prompt is displayed. """ self.moveCursor(QtGui.QTextCursor.End) self.centerCursor() self.setReadOnly(False) self._executing = False self._prompt_started_hook()
def _prompt_started(self): """ Called immediately after a new prompt is displayed. """ self.moveCursor(QtGui.QTextCursor.End) self.centerCursor() self._executing = False self._prompt_started_hook()
463,216
def hideEvent(self, event): """ Reimplemented to disconnect the cursor movement handler. """ QtGui.QListWidget.hideEvent(self, event) self.parent().cursorPositionChanged.disconnect(self._update_tip)
def hideEvent(self, event): """ Reimplemented to disconnect the cursor movement handler. """ QtGui.QLabel.hideEvent(self, event) self.parent().cursorPositionChanged.disconnect(self._update_tip)
463,217
def showEvent(self, event): """ Reimplemented to connect the cursor movement handler. """ QtGui.QListWidget.showEvent(self, event) self.parent().cursorPositionChanged.connect(self._update_tip)
def showEvent(self, event): """ Reimplemented to connect the cursor movement handler. """ QtGui.QLabel.showEvent(self, event) self.parent().cursorPositionChanged.connect(self._update_tip)
463,218
def stop(self): """ Reimplemented to emit signal. """ super(SocketChannelQObject, self).stop() self.stopped.emit()
def stop(self): """ Reimplemented to emit signal. """ super(SocketChannelQObject, self).stop() self.stopped.emit()
463,219
def eventFilter(self, obj, event): """ Reimplemented to hide on certain key presses and on parent focus changes. """ if obj == self.parent(): etype = event.type() if (etype == QtCore.QEvent.KeyPress and event.key() in (QtCore.Qt.Key_Enter, QtCore.Qt.Key_Return, QtCore.Qt.Key_Escape)): self.hide() elif etype == QtCore.Q...
def eventFilter(self, obj, event): """ Reimplemented to hide on certain key presses and on parent focus changes. """ if obj == self.parent(): etype = event.type() if etype == QtCore.QEvent.KeyPress: key = event.key() if key in (QtCore.Qt.Key_Enter, QtCore.Qt.Key_Return): self.hide() elif key == QtCore.Qt.Key_Escape: s...
463,220
def sizeHint(self): """ Reimplemented to suggest a size that is 80 characters wide and 25 lines high. """ font_metrics = QtGui.QFontMetrics(self.font) margin = (self._control.frameWidth() + self._control.document().documentMargin()) * 2 style = self.style() splitwidth = style.pixelMetric(QtGui.QStyle.PM_SplitterWidth)
def sizeHint(self): """ Reimplemented to suggest a size that is 80 characters wide and 25 lines high. """ font_metrics = QtGui.QFontMetrics(self.font) margin = (self._control.frameWidth() + self._control.document().documentMargin()) * 2 style = self.style() splitwidth = style.pixelMetric(QtGui.QStyle.PM_SplitterWidth)
463,221
def _format_as_columns(self, items, separator=' '): """ Transform a list of strings into a single string with columns.
def _format_as_columns(self, items, separator=' '): """ Transform a list of strings into a single string with columns.
463,222
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,223
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,224
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,225
def __init__(self, kind='plain', parent=None): """ Create a ConsoleWidget. Parameters ---------- kind : str, optional [default 'plain'] The type of text widget to use. Valid values are 'plain', which specifies a QPlainTextEdit, and 'rich', which specifies an QTextEdit.
def __init__(self, kind='plain', parent=None): """ Create a ConsoleWidget. Parameters ---------- kind : str, optional [default 'plain'] The type of text widget to use. Valid values are 'plain', which specifies a QPlainTextEdit, and 'rich', which specifies an QTextEdit.
463,226
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ if obj == self._control: etype = event.type()
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ if obj == self._control: etype = event.type()
463,227
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ if obj == self._control: etype = event.type()
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ if obj == self._control: etype = event.type()
463,228
def _create_context_menu(self): """ Creates a context menu for the underlying text widget. """ menu = QtGui.QMenu(self) clipboard = QtGui.QApplication.clipboard()
def _create_context_menu(self): """ Creates a context menu for the underlying text widget. """ menu = QtGui.QMenu(self) clipboard = QtGui.QApplication.clipboard()
463,229
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modifiers() ...
463,230
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifie...
463,231
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
463,232
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
463,233
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
463,234
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
463,235
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
def _event_filter_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False replaced_event = None cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_dow...
463,236
def closeEvent(self, event): """ Reimplemented to prompt the user and close the kernel cleanly, or close without prompt only if the exit magic is used. """ keepkernel = None #Use the prompt by default if hasattr(self._frontend,'_keep_kernel_on_exit'): #set by exit magic keepkernel = self._frontend._keep_kernel_on_exit ...
def closeEvent(self, event): """ Close the window and the kernel (if necessary). This will prompt the user if they are finished with the kernel, and if so, closes the kernel cleanly. Alternatively, if the exit magic is used, it closes without prompt. """ keepkernel = None #Use the prompt by default if hasattr(self._fr...
463,237
def __init__(self, block, length, number): self.block = block self.length = length self.number = number
def __init__(self, block, length, number): self.block = block self.length = length self.number = number
463,238
def _prompt_started_hook(self): """ Called immediately after a new prompt is displayed. """ self._highlighter.highlighting_on = True
def _prompt_started_hook(self): """ Called immediately after a new prompt is displayed. """ self._highlighter.highlighting_on = True
463,239
def _prompt_finished_hook(self): """ Called immediately after a prompt is finished, i.e. when some input will be processed and a new prompt displayed. """ self._highlighter.highlighting_on = False
def _prompt_finished_hook(self): """ Called immediately after a prompt is finished, i.e. when some input will be processed and a new prompt displayed. """ self._highlighter.highlighting_on = False
463,240
def _show_interpreter_prompt_for_reply(self, msg): """ Reimplemented for IPython-style prompts. """ # Update the old prompt number if necessary. content = msg['content'] previous_prompt_number = content['prompt_number'] if self._previous_prompt_obj and \ self._previous_prompt_obj.number != previous_prompt_number: block...
def _show_interpreter_prompt_for_reply(self, msg): """ Reimplemented for IPython-style prompts. """ # Update the old prompt number if necessary. content = msg['content'] previous_prompt_number = content['prompt_number'] if self._previous_prompt_obj and \ self._previous_prompt_obj.number != previous_prompt_number: block...
463,241
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,242
def hideEvent(self, event): """ Reimplemented to disconnect the cursor movement handler. """ QtGui.QListWidget.hideEvent(self, event) self.parent().cursorPositionChanged.disconnect(self._update_current)
def hideEvent(self, event): """ Reimplemented to disconnect the cursor movement handler. """ QtGui.QListWidget.hideEvent(self, event) try: self.parent().cursorPositionChanged.disconnect(self._update_current) except TypeError: pass
463,243
def __init__(self, app, frontend, existing=False, may_close=True): """ Create a MainWindow for the specified FrontendWidget. The app is passed as an argument to allow for different closing behavior depending on whether we are the Kernel's parent. If existing is True, then this Console does not own the Kernel. If may...
def __init__(self, app, frontend, existing=False, may_close=True): """ Create a MainWindow for the specified FrontendWidget. The app is passed as an argument to allow for different closing behavior depending on whether we are the Kernel's parent. If existing is True, then this Console does not own the Kernel. If may...
463,244
def main(): """ Entry point for application. """ # Parse command line arguments. parser = ArgumentParser() kgroup = parser.add_argument_group('kernel options') kgroup.add_argument('-e', '--existing', action='store_true', help='connect to an existing kernel') kgroup.add_argument('--ip', type=str, default=LOCALHOST, help...
def main(): """ Entry point for application. """ # Parse command line arguments. parser = ArgumentParser() kgroup = parser.add_argument_group('kernel options') kgroup.add_argument('-e', '--existing', action='store_true', help='connect to an existing kernel') kgroup.add_argument('--ip', type=str, default=LOCALHOST, help...
463,245
def main(): """ Entry point for application. """ # Parse command line arguments. parser = ArgumentParser() kgroup = parser.add_argument_group('kernel options') kgroup.add_argument('-e', '--existing', action='store_true', help='connect to an existing kernel') kgroup.add_argument('--ip', type=str, default=LOCALHOST, help...
def main(): """ Entry point for application. """ # Parse command line arguments. parser = ArgumentParser() kgroup = parser.add_argument_group('kernel options') kgroup.add_argument('-e', '--existing', action='store_true', help='connect to an existing kernel') kgroup.add_argument('--ip', type=str, default=LOCALHOST, help...
463,246
def export_html(self, parent = None, inline = False): """ Export the contents of the ConsoleWidget as HTML.
def export_html(self, parent = None, inline = False): """ Export the contents of the ConsoleWidget as HTML.
463,247
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,248
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
463,249
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ # Re-map keys for all filtered widgets. etype = event.type() if etype == QtCore.QEvent.KeyPress and \ self._control_key_down(event.modifiers()) and \ event.key() in self._ctrl_down_remap: new_event ...
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ # Re-map keys for all filtered widgets. etype = event.type() if etype == QtCore.QEvent.KeyPress and \ self._control_key_down(event.modifiers()) and \ event.key() in self._ctrl_down_remap: new_event ...
463,250
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ # Re-map keys for all filtered widgets. etype = event.type() if etype == QtCore.QEvent.KeyPress and \ self._control_key_down(event.modifiers()) and \ event.key() in self._ctrl_down_remap: new_event ...
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widget. """ # Re-map keys for all filtered widgets. etype = event.type() if etype == QtCore.QEvent.KeyPress and \ self._control_key_down(event.modifiers()) and \ event.key() in self._ctrl_down_remap: new_event ...
463,251
def _create_control(self, kind): """ Creates and connects the underlying text widget. """ if kind == 'plain': control = QtGui.QPlainTextEdit() elif kind == 'rich': control = QtGui.QTextEdit() control.setAcceptRichText(False) else: raise ValueError("Kind %s unknown." % repr(kind)) control.installEventFilter(self) contro...
def _create_control(self, kind): """ Creates and connects the underlying text widget. """ if kind == 'plain': control = ConsolePlainTextEdit() elif kind == 'rich': control = QtGui.QTextEdit() control.setAcceptRichText(False) else: raise ValueError("Kind %s unknown." % repr(kind)) control.installEventFilter(self) contro...
463,252
def _create_control(self, kind): """ Creates and connects the underlying text widget. """ if kind == 'plain': control = QtGui.QPlainTextEdit() elif kind == 'rich': control = QtGui.QTextEdit() control.setAcceptRichText(False) else: raise ValueError("Kind %s unknown." % repr(kind)) control.installEventFilter(self) contro...
def _create_control(self, kind): """ Creates and connects the underlying text widget. """ if kind == 'plain': control = QtGui.QPlainTextEdit() elif kind == 'rich': control = ConsoleTextEdit() control.setAcceptRichText(False) else: raise ValueError("Kind %s unknown." % repr(kind)) control.installEventFilter(self) contro...
463,253
def _create_page_control(self): """ Creates and connects the underlying paging widget. """ control = QtGui.QPlainTextEdit() control.installEventFilter(self) control.setReadOnly(True) control.setUndoRedoEnabled(False) control.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) return control
def _create_page_control(self): """ Creates and connects the underlying paging widget. """ control = ConsolePlainTextEdit() control.installEventFilter(self) control.setReadOnly(True) control.setUndoRedoEnabled(False) control.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) return control
463,254
def _handle_stream(self, msg): """ Handle stdout, stderr, and stdin. """ if not self._hidden and self._is_from_this_session(msg): self._append_plain_text(msg['content']['data']) self._control.moveCursor(QtGui.QTextCursor.End)
def _handle_stream(self, msg): """ Handle stdout, stderr, and stdin. """ if not self._hidden and self._is_from_this_session(msg): text = msg['content']['data'].expandtabs(8) self._append_plain_text(text) self._control.moveCursor(QtGui.QTextCursor.End)
463,255
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
463,256
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
463,257
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
463,258
def _set_input_buffer(self, string): """ Replaces the text in the input buffer with 'string'. """ # For now, it is an error to modify the input buffer during execution. if self._executing: raise RuntimeError("Cannot change input buffer during execution.")
def _set_input_buffer(self, string): """ Replaces the text in the input buffer with 'string'. """ # For now, it is an error to modify the input buffer during execution. if self._executing: raise RuntimeError("Cannot change input buffer during execution.")
463,259
def paste(self, mode=QtGui.QClipboard.Clipboard): """ Paste the contents of the clipboard into the input region.
def paste(self, mode=QtGui.QClipboard.Clipboard): """ Paste the contents of the clipboard into the input region.
463,260
def _insert_plain_text_into_buffer(self, text): """ Inserts text into the input buffer at the current cursor position, ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: self._keep_cursor_in_buffer() cursor = self._control.textCursor() cursor.beginEditBloc...
def _insert_plain_text_into_buffer(self, cursor, text): """ Inserts text into the input buffer using the specified cursor (which must be in the input buffer), ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: self._keep_cursor_in_buffer() cursor = self._c...
463,261
def _insert_plain_text_into_buffer(self, text): """ Inserts text into the input buffer at the current cursor position, ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: self._keep_cursor_in_buffer() cursor = self._control.textCursor() cursor.beginEditBloc...
def _insert_plain_text_into_buffer(self, text): """ Inserts text into the input buffer at the current cursor position, ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: cursor.beginEditBlock() cursor.insertText(lines[0]) for line in lines[1:]: if self._co...
463,262
def _insert_plain_text_into_buffer(self, text): """ Inserts text into the input buffer at the current cursor position, ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: self._keep_cursor_in_buffer() cursor = self._control.textCursor() cursor.beginEditBloc...
def _insert_plain_text_into_buffer(self, text): """ Inserts text into the input buffer at the current cursor position, ensuring that continuation prompts are inserted as necessary. """ lines = unicode(text).splitlines(True) if lines: self._keep_cursor_in_buffer() cursor = self._control.textCursor() cursor.beginEditBloc...
463,263
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
463,264
def Maxwell2D(d, Hx, Hy, Ez, final_time): """Integrate TM-mode Maxwell's until final_time starting with initial conditions Hx, Hy, Ez. """ l = d.ldis time = 0 # Runge-Kutta residual storage resHx = np.zeros_like(Hx) resHy = np.zeros_like(Hx) resEz = np.zeros_like(Hx) # compute time step size rLGL = JacobiGQ(0,0, l.N...
def Maxwell2D(d, Hx, Hy, Ez, final_time): """Integrate TM-mode Maxwell's until final_time starting with initial conditions Hx, Hy, Ez. """ l = d.ldis time = 0 # Runge-Kutta residual storage resHx = np.zeros_like(Hx) resHy = np.zeros_like(Hx) resEz = np.zeros_like(Hx) # compute time step size rLGL = JacobiGQ(0,0, l.N...
463,265
def MaxwellRHS2D(discr, Hx, Hy, Ez): """Evaluate RHS flux in 2D Maxwell TM form.""" d = discr l = discr.ldis # Define field differences at faces vmapM = d.vmapM.reshape(l.Nfp*l.Nfaces, d.K, order='F') vmapP = d.vmapP.reshape(l.Nfp*l.Nfaces, d.K, order='F') Im, Jm = ind2sub(vmapM, l.Np) Ip, Jp = ind2sub(vmapP, l.Np) ...
def MaxwellRHS2D(discr, Hx, Hy, Ez): """Evaluate RHS flux in 2D Maxwell TM form.""" d = discr l = discr.ldis # Define field differences at faces vmapM = d.vmapM.reshape(l.Nfp*l.Nfaces, d.K, order='F') vmapP = d.vmapP.reshape(l.Nfp*l.Nfaces, d.K, order='F') Im, Jm = ind2sub(vmapM, l.Np) Ip, Jp = ind2sub(vmapP, l.Np) ...
463,266
def prepare_dev_data(self): ldis = self.ldis
def prepare_dev_data(self): ldis = self.ldis
463,267
def prettyOut(self, value): return ipAddressPrettyOut(value)
def prettyOut(self, value): return ipAddressPrettyOut(value)
463,268
def loadModules(self, *modNames): # Build a list of available modules if not modNames: modNames = {} for mibSource in self.__mibSources: for modName in mibSource.listdir(): modNames[modName] = None modNames = modNames.keys() if not modNames: raise error.SmiError( 'No MIB module to load at %s' % (self,) ) for modName i...
def loadModules(self, *modNames): # Build a list of available modules if not modNames: modNames = {} for mibSource in self.__mibSources: for modName in mibSource.listdir(): modNames[modName] = None modNames = modNames.keys() if not modNames: raise error.SmiError( 'No MIB module to load at %s' % (self,) ) for modName i...
463,269
def _handleResponse( self, snmpEngine, transportDomain, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineId, contextName, pduVersion, PDU, timeout, retryCount, pMod, rspPDU, sendRequestHandle, (cbFun, cbCtx) ): varBindTable = pMod.apiBulkPDU.getVarBindTable(PDU, rspPDU)
def _handleResponse( self, snmpEngine, transportDomain, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineId, contextName, pduVersion, PDU, timeout, retryCount, pMod, rspPDU, sendRequestHandle, (cbFun, cbCtx) ): varBindTable = pMod.apiBulkPDU.getVarBindTable(PDU, rspPDU)
463,270
def sendPdu( self, snmpEngine, transportDomain, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineId, contextName, pduVersion, PDU, expectResponse ): """PDU dispatcher -- prepare and serialize a request or notification""" # 4.1.1.2 mpHandler = snmpEngine.messageProcessin...
def sendPdu( self, snmpEngine, transportDomain, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineId, contextName, pduVersion, PDU, expectResponse ): """PDU dispatcher -- prepare and serialize a request or notification""" # 4.1.1.2 mpHandler = snmpEngine.messageProcessin...
463,271
def howto_install_setuptools(): print """Error: You need setuptools Python package!
def howto_install_setuptools(): print """Error: You need setuptools Python package!
463,272
def addV1System(snmpEngine, securityName, communityName, contextEngineId=None, contextName=None, transportTag=None): snmpCommunityEntry, tblIdx, snmpEngineID = __cookV1SystemInfo( snmpEngine, securityName ) if contextEngineId is None: contextEngineId = snmpEngineID.syntax if contextName is not None: contextName = comm...
def addV1System(snmpEngine, securityName, communityName, contextEngineId=None, contextName=None, transportTag=None): snmpCommunityEntry, tblIdx, snmpEngineID = __cookV1SystemInfo( snmpEngine, securityName ) if contextEngineId is None: contextEngineId = snmpEngineID.syntax if contextName is None: contextName = communit...
463,273
def addVacmUser(snmpEngine, securityModel, securityName, securityLevel, readSubTree=(), writeSubTree=(), notifySubTree=()): ( groupName, securityLevel, readView, writeView, notifyView ) = __cookVacmUserInfo( snmpEngine, securityModel, securityName, securityLevel, ) addVacmGroup( snmpEngine, groupName, securityModel, se...
def addVacmUser(snmpEngine, securityModel, securityName, securityLevel, readSubTree=(), writeSubTree=(), notifySubTree=(), contextName=''): ( groupName, securityLevel, readView, writeView, notifyView ) = __cookVacmUserInfo( snmpEngine, securityModel, securityName, securityLevel, ) addVacmGroup( snmpEngine, groupName, s...
463,274
def addVacmUser(snmpEngine, securityModel, securityName, securityLevel, readSubTree=(), writeSubTree=(), notifySubTree=()): ( groupName, securityLevel, readView, writeView, notifyView ) = __cookVacmUserInfo( snmpEngine, securityModel, securityName, securityLevel, ) addVacmGroup( snmpEngine, groupName, securityModel, se...
def addVacmUser(snmpEngine, securityModel, securityName, securityLevel, readSubTree=(), writeSubTree=(), notifySubTree=()): ( groupName, securityLevel, readView, writeView, notifyView ) = __cookVacmUserInfo( snmpEngine, securityModel, securityName, securityLevel, ) addVacmGroup( snmpEngine, groupName, securityModel, se...
463,275
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
463,276
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
463,277
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
def getVarBindTable(self, reqPDU, rspPDU): nonRepeaters = int(self.getNonRepeaters(reqPDU)) N = min(nonRepeaters, len(self.getVarBindList(reqPDU))) R = max(len(self.getVarBindList(reqPDU))-N, 0) if R == 0: M = 0 else: M = int(min(self.getMaxRepetitions(reqPDU), (len(apiPDU.getVarBindList(rspPDU))-N))/R) varBindList = a...
463,278
def __expireTimelineInfo(self): if self.__timelineExpQueue.has_key(self.__expirationTimer): for engineIdKey in self.__timelineExpQueue[self.__expirationTimer]: del self.__timeline[engineIdKey] debug.logger & debug.flagSM and debug.logger('__expireEnginesInfo: expiring %s' % (engineIdKey,)) del self.__timelineExpQueue[s...
def __expireTimelineInfo(self): if self.__timelineExpQueue.has_key(self.__expirationTimer): for engineIdKey in self.__timelineExpQueue[self.__expirationTimer]: if self.__timeline.has_key(engineIdKey): del self.__timeline[engineIdKey] debug.logger & debug.flagSM and debug.logger('__expireEnginesInfo: expiring %s' % (eng...
463,279
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
463,280
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
463,281
def getTargetNames(snmpEngine, tag): mibInstrumController = snmpEngine.msgAndPduDsp.mibInstrumController # Transport endpoint ( snmpTargetAddrEntry, snmpTargetAddrTagList ) = mibInstrumController.mibBuilder.importSymbols( 'SNMP-TARGET-MIB', 'snmpTargetAddrEntry', 'snmpTargetAddrTagList' ) targetNames = [] nextName = s...
def getTargetNames(snmpEngine, tag): mibInstrumController = snmpEngine.msgAndPduDsp.mibInstrumController # Transport endpoint ( snmpTargetAddrEntry, snmpTargetAddrTagList ) = mibInstrumController.mibBuilder.importSymbols( 'SNMP-TARGET-MIB', 'snmpTargetAddrEntry', 'snmpTargetAddrTagList' ) targetNames = [] nextName = s...
463,282
def __call__(self, protoVer): return api.protoModules[protoVer].OctetString( 'PySNMP example command responder at %s' % __file__ )
def __call__(self, protoVer): return api.protoModules[protoVer].OctetString( 'PySNMP example command responder' )
463,283
def howto_install_setuptools(): print """Error: You need setuptools Python package!
def howto_install_setuptools(): print """Error: You need setuptools Python package!
463,284
def howto_install_setuptools(): print """Error: You need setuptools Python package!
def howto_install_setuptools(): print """Error: You need setuptools Python package!
463,285
def prepareDataElements( self, snmpEngine, transportDomain, transportAddress, wholeMsg ): # 7.2.2 try: msg, restOfwholeMsg = decoder.decode( wholeMsg, asn1Spec=self._snmpMsgSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpInASNPa...
def prepareDataElements( self, snmpEngine, transportDomain, transportAddress, wholeMsg ): # 7.2.2 try: msg, restOfwholeMsg = decoder.decode( wholeMsg, asn1Spec=self._snmpMsgSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpInASNPa...
463,286
def prepareDataElements( self, snmpEngine, transportDomain, transportAddress, wholeMsg ): # 7.2.2 try: msg, restOfwholeMsg = decoder.decode( wholeMsg, asn1Spec=self._snmpMsgSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpInASNPa...
def prepareDataElements( self, snmpEngine, transportDomain, transportAddress, wholeMsg ): # 7.2.2 try: msg, restOfwholeMsg = decoder.decode( wholeMsg, asn1Spec=self._snmpMsgSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpInASNPa...
463,287
def __cbFun( sendRequestHandle, errorIndication, errorStatus, errorIndex, varBindTable, (varBindHead, varBindTotalTable, appReturn) ): if errorIndication or errorStatus: appReturn['errorIndication'] = errorIndication appReturn['errorStatus'] = errorStatus appReturn['errorIndex'] = errorIndex appReturn['varBindTable'] =...
def __cbFun( sendRequestHandle, errorIndication, errorStatus, errorIndex, varBindTable, (varBindHead, varBindTotalTable, appReturn) ): if errorIndication or errorStatus: appReturn['errorIndication'] = errorIndication if errorStatus == 2: appReturn['errorStatus'] = errorStatus.clone(0) appReturn['errorIndex'] = errorI...
463,288
def createUndo(self, name, val, idx, (acFun, acCtx)): if val is not None: self.writeCleanup(name, val, idx, (acFun, acCtx))
def createUndo(self, name, val, idx, (acFun, acCtx)): if val is not None: self.writeCleanup(name, val, idx, (acFun, acCtx))
463,289
def createUndo(self, name, val, idx, (acFun, acCtx)): # Set back previous column instance, drop the new one if self.__createdInstances.has_key(name): self._vars[name] = self.__createdInstances[name] del self.__createdInstances[name] # Remove new instance on rollback if self._vars[name] is None: del self._vars[name] els...
def createUndo(self, name, val, idx, (acFun, acCtx)): # Set back previous column instance, drop the new one if self.__createdInstances.has_key(name): self._vars[name] = self.__createdInstances[name] del self.__createdInstances[name] # Remove new instance on rollback if self._vars[name] is None: del self._vars[name] els...
463,290
def createUndo(self, name, val, idx, (acFun, acCtx)): # Set back previous column instance, drop the new one if self.__createdInstances.has_key(name): self._vars[name] = self.__createdInstances[name] del self.__createdInstances[name] # Remove new instance on rollback if self._vars[name] is None: del self._vars[name] els...
def createUndo(self, name, val, idx, (acFun, acCtx)): # Set back previous column instance, drop the new one if self.__createdInstances.has_key(name): self._vars[name] = self.__createdInstances[name] del self.__createdInstances[name] # Remove new instance on rollback if self._vars[name] is None: del self._vars[name] els...
463,291
def __init__(self): self.__transports = {} self.__jobs = {} self.__recvCbFun = None self.__timerCbFuns = [] self.__timeToGo = 0
def __init__(self): self.__transports = {} self.__jobs = {} self.__recvCbFun = None self.__timerCbFuns = [] self.__timeToGo = 0
463,292
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
463,293
def unregisterTimerCbFun(self, timerCbFun=None): if timerCbFun is None: self.__timerCbFuns = [] else: self.__timerCbFuns.remove(timerCbFun)
def unregisterTimerCbFun(self, timerCbFun=None): if timerCbFun is None: self.__timerCallables = [] else: self.__timerCbFuns.remove(timerCbFun)
463,294
def unregisterTimerCbFun(self, timerCbFun=None): if timerCbFun is None: self.__timerCbFuns = [] else: self.__timerCbFuns.remove(timerCbFun)
def unregisterTimerCbFun(self, timerCbFun=None): if timerCbFun is None: self.__timerCbFuns = [] else: self.__timerCbFuns.remove(timerCbFun)
463,295
def handleTimerTick(self, timeNow): if self.__timerCbFuns and self.__timeToGo < timeNow: for timerCbFun in self.__timerCbFuns: timerCbFun(timeNow) self.__timeToGo = timeNow + 1
def handleTimerTick(self, timeNow): if self.__timerCbFuns and self.__timeToGo < timeNow: for timerCbFun in self.__timerCbFuns: timerCbFun(timeNow) self.__timeToGo = timeNow + 1
463,296
def __getEncryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime): salt = [ self._localInt>>56&0xff, self._localInt>>48&0xff, self._localInt>>40&0xff, self._localInt>>32&0xff, self._localInt>>24&0xff, self._localInt>>16&0xff, self._localInt>>8&0xff, self._localInt&0xff ] if self._localInt == 0xffffffffffffffffL: ...
def __getEncryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime): salt = [ self._localInt>>56&0xff, self._localInt>>48&0xff, self._localInt>>40&0xff, self._localInt>>32&0xff, self._localInt>>24&0xff, self._localInt>>16&0xff, self._localInt>>8&0xff, self._localInt&0xff ] if self._localInt == 0xffffffffffffffffL: ...
463,297
def __getDecryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime, salt): snmpEngineBoots, snmpEngineTime, salt = ( long(snmpEngineBoots), long(snmpEngineTime), str(salt) )
def __getDecryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime, salt): snmpEngineBoots, snmpEngineTime, salt = ( long(snmpEngineBoots), long(snmpEngineTime), str(salt) )
463,298
def __getDecryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime, salt): snmpEngineBoots, snmpEngineTime, salt = ( long(snmpEngineBoots), long(snmpEngineTime), str(salt) )
def __getDecryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime, salt): snmpEngineBoots, snmpEngineTime, salt = ( long(snmpEngineBoots), long(snmpEngineTime), str(salt) )
463,299