Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
undo any changes to src/sage/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed May 23, 2016
1 parent 57cf842 commit d27d324
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/sage/dev/sagedev.py
Expand Up @@ -26,7 +26,6 @@
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

import os
import re
Expand Down Expand Up @@ -4128,7 +4127,7 @@ def _upload_ssh_key(self):
sage: from sage.dev.user_interface_error import OperationCancelledError
sage: def upload_ssh_key():
....: print("Uploading ssh key.")
....: print "Uploading ssh key."
....: raise OperationCancelledError("")
sage: dev._sagedev.upload_ssh_key = upload_ssh_key
Expand Down
6 changes: 2 additions & 4 deletions src/sage/dev/saving_dict.py
Expand Up @@ -19,8 +19,6 @@
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

import cPickle
from cStringIO import StringIO
import os
Expand All @@ -41,7 +39,7 @@ def _raise():
Traceback (most recent call last):
...
Exception: this is a test
sage: print(s)
sage: print s
the exception was caught
"""
raise
Expand Down Expand Up @@ -379,7 +377,7 @@ def __iter__(self):
sage: sd = SavingDict(tmp_filename(), {'cow':'moo', 0:1}); sd
{0: 1, 'cow': 'moo'}
sage: for key in sd:
....: print("{} {}".format(key, sd[key]))
... print key, sd[key]
0 1
cow moo
sage: sd._erase()
Expand Down
3 changes: 1 addition & 2 deletions src/sage/dev/test/user_interface.py
Expand Up @@ -18,7 +18,6 @@
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

import six
from getpass import getpass
Expand Down Expand Up @@ -120,7 +119,7 @@ def edit(self, filename):
sage: UI = DoctestUserInterface(DoctestConfig()["UI"])
sage: UI.append("Some\nlines\n")
sage: UI.edit(tmp)
sage: print(open(tmp,'r').read())
sage: print open(tmp,'r').read()
Some
lines
<BLANKLINE>
Expand Down
3 changes: 1 addition & 2 deletions src/sage/dev/trac_interface.py
Expand Up @@ -22,7 +22,6 @@
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

import os
import re
Expand Down Expand Up @@ -130,7 +129,7 @@ def _timerep(tm, curtime=None):
sage: T.append(datetime.datetime(2013, 8, 25, 9))
sage: T.append(datetime.datetime(2012, 11, 19))
sage: T.append(datetime.datetime(2010, 1, 2))
sage: for t in T: print(_timerep(t, curtime))
sage: for t in T: print _timerep(t, curtime)
5 minutes ago
5 hours ago
11 days ago
Expand Down

0 comments on commit d27d324

Please sign in to comment.