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

Commit

Permalink
trac 22871 fix some typos and omissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Apr 26, 2017
1 parent 8c223ad commit 09cae0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/sage/crypto/mq/sbox.py
Expand Up @@ -3,6 +3,7 @@
"""
from __future__ import print_function, division
from six.moves import range
from six import integer_types

from sage.combinat.integer_vector import IntegerVectors
from sage.crypto.boolean_function import BooleanFunction
Expand Down
2 changes: 1 addition & 1 deletion src/sage/monoids/free_abelian_monoid_element.py
Expand Up @@ -78,7 +78,7 @@ def __init__(self, F, x):
"""
MonoidElement.__init__(self, F)
n = F.ngens()
if isinstance(x, integer_types, + (Integer,)) and x == 1:
if isinstance(x, integer_types + (Integer,)) and x == 1:
self._element_vector = tuple([0]*n)
elif isinstance(x, (list, tuple)):
if len(x) != n:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/monoids/string_monoid_element.py
Expand Up @@ -83,7 +83,7 @@ def __init__(self, S, x, check=True):
if isinstance(x, list):
if check:
for b in x:
if not isinstance(b, integer_types + (Intger,)):
if not isinstance(b, integer_types + (Integer,)):
raise TypeError(
"x (= %s) must be a list of integers." % x)
self._element_list = list(x) # make copy
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/constructor.py
Expand Up @@ -421,7 +421,7 @@ def create_key_and_extra_args(self, x=None, y=None, j=None, minimal_twist=True,

if R is None:
R = Sequence(x).universe()
if R in (rings.ZZ, integer_types):
if R in (rings.ZZ,) + integer_types:
R = rings.QQ

return (R, tuple(R(a) for a in x)), kwds
Expand Down

0 comments on commit 09cae0a

Please sign in to comment.