Skip to content

Commit

Permalink
Rename scanf module on import to avoid name collision with local func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
olebole committed Mar 20, 2024
1 parent 96b7fbe commit b49413d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyraf/iraffunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _writeError(msg):
from . import cl2py as _cl2py
from . import gki
from . import irafecl
from . import scanf
from . import scanf as sscanf


# FP_EPSILON is the smallest number such that: 1.0 + epsilon > 1.0; Use None
Expand Down Expand Up @@ -1983,7 +1983,7 @@ def fscanf(theLocals, line, format, *namelist, **kw):
_weirdEOF(theLocals, namelist)
_nscan = 0
return EOF
f = scanf.scanf(format, line)
f = sscanf.scanf(format, line)
# if list is null, add a null string
# ugly but should be right most of the time
if f is None and namelist:
Expand Down

0 comments on commit b49413d

Please sign in to comment.