Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 4bae4f7

Browse files
committed
Silence pyflakes warnings:
========== pyflakes ========== git checkout patchbot/ticket_merged src/sage/dynamics/arithmetic_dynamics/projective_ds.py:56: 'sage.arith.misc.is_square' imported but unused src/sage/dynamics/arithmetic_dynamics/projective_ds.py:3920: import 'e' from line 101 shadowed by loop variable src/sage/dynamics/arithmetic_dynamics/projective_ds.py:5940: import 'e' from line 101 shadowed by loop variable src/sage/dynamics/arithmetic_dynamics/projective_ds.py:6058: local variable 'var' is assigned to but never used src/sage/dynamics/arithmetic_dynamics/projective_ds.py:6087: import 'e' from line 101 shadowed by loop variable found 5 pyflakes errors in the modified files pyflakes -- 0 seconds ========== end pyflakes ==========
1 parent 76b7fdd commit 4bae4f7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/sage/dynamics/arithmetic_dynamics/projective_ds.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class initialization directly.
5353
# ****************************************************************************
5454
from __future__ import print_function, absolute_import
5555

56-
from sage.arith.misc import (is_prime, is_square)
56+
from sage.arith.misc import is_prime
5757
from sage.categories.fields import Fields
5858
from sage.categories.function_fields import FunctionFields
5959
from sage.categories.number_fields import NumberFields
@@ -3917,8 +3917,8 @@ def sigma_invariants(self, n, formal=False, embedding=None, type='point'):
39173917
res = res.univariate_polynomial()
39183918
#adjust multiplicities
39193919
L = res.factor()
3920-
for p,e in L:
3921-
good_res *= p**(e/n)
3920+
for p,exp in L:
3921+
good_res *= p**(exp/n)
39223922
else:
39233923
#For each d-th dynatomic for d dividing n, take
39243924
#one multiplier per cycle; e.g., this treats a double 2
@@ -5937,11 +5937,11 @@ def is_polynomial(self):
59375937
Y = G.factor()
59385938
R = G.parent()
59395939
u = G
5940-
for p,e in Y:
5940+
for p,exp in Y:
59415941
if p.degree() == 1:
59425942
if len((g[0]*p[1] + g[1]*p[0]).factor()) == 1:
59435943
return True
5944-
G = R(G/(p**e)) # we already checked this root
5944+
G = R(G/(p**exp)) # we already checked this root
59455945
else:
59465946
u = p #need to extend to get these roots
59475947
if G.degree() != 0:
@@ -6055,7 +6055,6 @@ def normal_form(self, return_conjugation=False):
60556055
raise NotImplementedError("must be over an absolute number field or finite field")
60566056
if K in FiniteFields():
60576057
q = K.characteristic()
6058-
var = K.variable_name()
60596058
psi = K.hom([K.gen()]) #identity hom for return_embedding
60606059
g = self
60616060
G = self.dehomogenize(1).dynatomic_polynomial(1)
@@ -6084,7 +6083,7 @@ def normal_form(self, return_conjugation=False):
60846083
Y = G.factor()
60856084
R = G.parent()
60866085
done = True
6087-
for p,e in Y:
6086+
for p,exp in Y:
60886087
if p.degree() == 1:
60896088
if len((g[0]*p[1] + g[1]*p[0]).factor()) == 1:
60906089
T = self.domain()(-p[0], p[1])

0 commit comments

Comments
 (0)