When I run my code the program adds the following before the start of my program:
>>>
Warning (from warnings module):
File "C:/Users/Steven/Documents/CA/CA python/CAMain.py", line 142
def maxgen(fname, worksheet=1,encoding='cp1251'):
SyntaxWarning: import * only allowed at module level
>>>
The first prompt of my program would be here
The code it refers to is the following:
def maxgen(fname, worksheet=1,encoding='cp1251'):
from pyExcelerator import *
The program works fine, but I don't want it to display the warning for each function that includes "import *" as there are several.
Any ideas? Thanks in advance.