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

Commit

Permalink
changes the deprecated backticks usage to repr() function calls
Browse files Browse the repository at this point in the history
4 .py modules were changed by 2to3 tool
  • Loading branch information
wluebbe committed Mar 26, 2014
1 parent 9db8c5c commit 8c99a20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/designs/ext_rep.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def __getitem__(self, i):
try:
child = self.xt_children[i]
except IndexError:
raise IndexError, '%s no index %s' % (self.__repr__(), `i`)
raise IndexError, '%s no index %s' % (self.__repr__(), repr(i))
if type(child) == TupleType:
name, attributes, children = child
if len(attributes) > 0:
Expand Down
6 changes: 3 additions & 3 deletions src/sage/combinat/ncsf_qsym/ncsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def coproduct_on_generators(self, i):
'Not a positive integer: 0'
"""
if i<1:
return "Not a positive integer: %s" % `i`
return "Not a positive integer: %s" % repr(i)
def C(i): return self._basis_keys([i]) if i else self._basis_keys([])
T = self.tensor_square()
return T.sum_of_monomials( (C(j), C(i-j)) for j in range(0,i+1) )
Expand Down Expand Up @@ -1462,7 +1462,7 @@ def antipode_on_generators(self, i):
'Not a positive integer: 0'
"""
if i<1:
return "Not a positive integer: %s" % `i`
return "Not a positive integer: %s" % repr(i)
return - self.algebra_generators()[i]

def coproduct_on_generators(self, i):
Expand All @@ -1488,7 +1488,7 @@ def coproduct_on_generators(self, i):
'Not a positive integer: 0'
"""
if i<1:
return "Not a positive integer: %s" % `i`
return "Not a positive integer: %s" % repr(i)
x = self.algebra_generators()[i]
from sage.categories.all import tensor
return tensor([self.one(), x]) + tensor([x, self.one()])
Expand Down
4 changes: 2 additions & 2 deletions src/sage/interfaces/frobby.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def __call__(self, action, input=None, options=[], verbose=False):

if verbose:
print "Frobby action: ", action
print "Frobby options: ", `options`
print "Frobby command: ", `command`
print "Frobby options: ", repr(options)
print "Frobby command: ", repr(command)
print "Frobby input:\n", input

process = Popen(command, stdin = PIPE, stdout = PIPE, stderr = PIPE)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/modular/quatalg/brandt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ def _ideal_products(self):
L = self.right_ideals()
n = len(L)
if n == 0:
return matrix(self.base_ring()[[`q`]],0)
return matrix(self.base_ring()[[repr(q)]],0)

# 1. Compute the theta series
P = []
Expand Down

0 comments on commit 8c99a20

Please sign in to comment.