sagemath/sage

Replace imports of QQ, ZZ, GF, Integer from sage.rings.all by more specific imports

Closed this issue · 9 comments

(cherry-picked from #32432)

Component: refactoring

Author: Matthias Koeppe

Branch/Commit: d9dd2d0

Reviewer: Jonathan Kliem

Issue created by migration from https://trac.sagemath.org/ticket/32620

Commit: d9dd2d0

New commits:

f7e07bfgit grep -l 'all import ZZ' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import (ZZ, QQ|QQ, ZZ) *$/\1from sage.rings.integer_ring import ZZ\\n\1from sage.rings.rational_field import QQ/'
acf7ae9git grep -l 'all import ZZ' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import ZZ *$/\1from sage.rings.integer_ring import ZZ/'
31e17a4git grep -l 'all import .*ZZ' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import (ZZ, GF) *$/\1from sage.rings.integer_ring import ZZ\\n\1from sage.rings.finite_rings.finite_field_constructor import GF/'
d9dd2d0git grep -l 'all import.*ZZ' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import (ZZ, QQ|QQ, ZZ) *$/\1from sage.rings.integer_ring import ZZ\\n\1from sage.rings.rational_field import QQ/'

Author: Matthias Koeppe

Description changed:

--- 
+++ 
@@ -1 +1,2 @@
+(cherry-picked from #32432)
 
kliem commented
comment:5

LGTM. Green bot -> Positive Review.

kliem commented

Reviewer: Jonathan Kliem

comment:6

Thank you!