4444
4545from sage .features .gfan import GfanExecutable
4646
47- from sage .misc .decorators import rename_keyword
48-
4947
5048class Gfan :
5149 """
5250 Interface to Anders Jensen's Groebner Fan program.
5351 """
54- @rename_keyword (deprecation = 33468 , I = 'input' )
55- def __call__ (self , input , cmd = '' , verbose = False , format = None ):
52+ def __call__ (self , input , cmd = '' , verbose = False ):
5653 r"""
5754 Call Groebner Fan program with given input.
5855
@@ -83,21 +80,7 @@ def __call__(self, input, cmd='', verbose=False, format=None):
8380 x^4+1/3+x-2*x^2-x^3,
8481 y+1-x^2}
8582 }
86-
87- TESTS::
88-
89- sage: _ = gfan(I='Q[x,y]{x^2-y-1,y^2-xy-2/3}', cmd='bases') # needs gfan
90- doctest:...:
91- DeprecationWarning: use the option 'input' instead of 'I'
92- See https://github.com/sagemath/sage/issues/33468 for details.
9383 """
94- if format is not None :
95- from sage .misc .superseded import deprecation
96- deprecation (33468 , 'argument `format` is ignored in the code: '
97- 'it is now deprecated. Please update your code '
98- 'without this argument as it will be removed in a later '
99- 'version of SageMath.' )
100-
10184 if cmd :
10285 cmd = cmd .split (' ' )
10386 cmd [0 ] = GfanExecutable (cmd [0 ]).absolute_filename ()
@@ -112,9 +95,9 @@ def __call__(self, input, cmd='', verbose=False, format=None):
11295 encoding = 'latin-1' )
11396 ans , err = gfan_processes .communicate (input = input )
11497
115- # sometimes, gfan outputs stuff to stderr even though everything is fine
116- # we avoid interpreting this as an error
117- if ( len (err ) > 0 ) and not ( err .startswith ('_application PolyhedralCone' ) ):
98+ # sometimes, gfan outputs stuff to stderr even though
99+ # everything is fine ; we avoid interpreting this as an error
100+ if len (err ) > 0 and not err .startswith ('_application PolyhedralCone' ):
118101 raise RuntimeError (err )
119102
120103 return ans
0 commit comments