def abbrev(str, max_len):
    if len(str) > max_len: return str[:max_len] + "..."
    else: return str
Creates a cursor, opening a connection if necessary.
dataset/ETHPy150Open braiden/python-ant-downloader/antd/garmin.py/abbrev--crossover with--dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.cursor