This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Common Interface Functionality through Pexpect | ||
|
@@ -24,20 +25,17 @@ | |
after a crash, when a command is executed in _eval_line. Allow | ||
synchronisation of the GAP interface. | ||
- François Bissey, Bill Page, Jeroen Demeyer (2015-12-09): Upgrade to | ||
pexpect 4.0.1 + patches, see :trac:`10295`. | ||
""" | ||
|
||
#***************************************************************************** | ||
# Copyright (C) 2005 William Stein <[email protected]> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# The full text of the GPL is available at: | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 2 of the License, or | ||
# (at your option) any later version. | ||
# http://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
|
||
|
@@ -51,15 +49,11 @@ | |
import six | ||
from random import randrange | ||
|
||
######################################################## | ||
# Important note: We use Pexpect 2.0 *not* Pexpect 2.1. | ||
# For reasons I don't understand, pexpect2.1 is much | ||
# worse than pexpect 2.0 for everything Sage does. | ||
######################################################## | ||
import pexpect | ||
from pexpect import ExceptionPexpect | ||
from sage.interfaces.sagespawn import SageSpawn | ||
from sage.interfaces.interface import Interface, InterfaceElement, InterfaceFunction, InterfaceFunctionElement, AsciiArtString | ||
from sage.interfaces.interface import (Interface, InterfaceElement, | ||
InterfaceFunction, InterfaceFunctionElement, AsciiArtString) | ||
|
||
from sage.structure.element import RingElement | ||
|
||
|