(major, minor, cause, fix)
| 169 | |
| 170 | |
| 171 | def depr(major, minor, cause, fix): |
| 172 | text = "Warning: Use of deprecated feature or API. (Deprecated in Bottle-%d.%d)\n"\ |
| 173 | "Cause: %s\n"\ |
| 174 | "Fix: %s\n" % (major, minor, cause, fix) |
| 175 | if DEBUG == 'strict': |
| 176 | raise DeprecationWarning(text) |
| 177 | warnings.warn(text, DeprecationWarning, stacklevel=3) |
| 178 | return DeprecationWarning(text) |
| 179 | |
| 180 | |
| 181 | def makelist(data): # This is just too handy |
no outgoing calls
no test coverage detected
searching dependent graphs…