From be7b401762d65089d256eb6bff587881dad08fb5 Mon Sep 17 00:00:00 2001 From: "femtocleaner[bot]" Date: Wed, 26 Sep 2018 18:03:07 +0000 Subject: [PATCH] Fix deprecations --- src/AutGroup.jl | 2 +- src/FPGroups.jl | 2 +- src/Groups.jl | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AutGroup.jl b/src/AutGroup.jl index b4d27b6..6c80552 100644 --- a/src/AutGroup.jl +++ b/src/AutGroup.jl @@ -331,7 +331,7 @@ inv(f::AutSymbol) = change_pow(f, -f.pow) function getperm(s::AutSymbol) if s.pow != 1 - warn("Power for perm_symbol should be never 0!") + @warn("Power for perm_symbol should be never 0!") return s.fn.perm^s.pow else return s.fn.perm diff --git a/src/FPGroups.jl b/src/FPGroups.jl index 3a6cc15..545c87d 100644 --- a/src/FPGroups.jl +++ b/src/FPGroups.jl @@ -142,7 +142,7 @@ inv(s::FPSymbol) = change_pow(s, -s.pow) function reduce!(W::FPGroupElem) if length(W) < 2 - deleteat!(W.symbols, find(x -> x.pow == 0, W.symbols)) + deleteat!(W.symbols, findall(x -> x.pow == 0, W.symbols)) else reduced = false while !reduced diff --git a/src/Groups.jl b/src/Groups.jl index dd29ce4..916cc04 100644 --- a/src/Groups.jl +++ b/src/Groups.jl @@ -1,4 +1,3 @@ -__precompile__() module Groups using AbstractAlgebra