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

Commit

Permalink
Python 3 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lucas committed Feb 7, 2017
1 parent 98d8b0a commit b0bca6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/coding/linear_code.py
Expand Up @@ -631,8 +631,7 @@ def _repr_(self):
...
RuntimeError: Please override _repr_ in the implementation of <class '__main__.MyCode_with_category'>
"""
raise RuntimeError("Please override _repr_ in the implementation of %s"
% self.parent())
raise RuntimeError("Please override _repr_ in the implementation of {}".format(self.parent()))

def _latex_(self):
r"""
Expand Down Expand Up @@ -677,8 +676,7 @@ def _latex_(self):
...
RuntimeError: Please override _latex_ in the implementation of <class '__main__.MyCode_with_category'>
"""
raise RuntimeError("Please override _latex_ in the implementation of %s"
% self.parent())
raise RuntimeError("Please override _latex_ in the implementation of {}".format(self.parent()))

def _an_element_(self):
r"""
Expand Down

0 comments on commit b0bca6f

Please sign in to comment.