File: db_utils.py

package info (click to toggle)
mysql-workbench 6.3.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 113,932 kB
  • ctags: 87,814
  • sloc: ansic: 955,521; cpp: 427,465; python: 59,728; yacc: 59,129; xml: 54,204; sql: 7,091; objc: 965; makefile: 638; sh: 613; java: 237; perl: 30; ruby: 6; php: 1
file content (10 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import warnings

# Display all deprecation warnings that are ignored by default:
warnings.simplefilter('always', DeprecationWarning, lineno=0)

warnings.warn("Use 'from workbench import db_utils' instead of importing db_utils directly. This will be deprecated in the future", 
              DeprecationWarning,
              stacklevel=2)

from workbench.db_utils import *