eric6/Utilities/__init__.py

changeset 7599
d6efb1e15a5b
parent 7595
5db6bfeff23e
child 7628
f904d0eef264
equal deleted inserted replaced
7598:6bb50f2a1df2 7599:d6efb1e15a5b
27 @param category type object of the warning 27 @param category type object of the warning
28 @param filename name of the file causing the warning (string) 28 @param filename name of the file causing the warning (string)
29 @param lineno line number causing the warning (integer) 29 @param lineno line number causing the warning (integer)
30 @param file file to write the warning message to (ignored) 30 @param file file to write the warning message to (ignored)
31 @param line line causing the warning (ignored) 31 @param line line causing the warning (ignored)
32 @raise SyntaxError 32 @raise err exception of type SyntaxError
33 """ # __IGNORE_WARNING_D252__ __IGNORE_WARNING_D253__ 33 """
34 if category is SyntaxWarning: 34 if category is SyntaxWarning:
35 err = SyntaxError(str(message)) 35 err = SyntaxError(str(message))
36 err.filename = filename 36 err.filename = filename
37 err.lineno = lineno 37 err.lineno = lineno
38 raise err 38 raise err

eric ide

mercurial