cli/shell: let the magic operate

We want this tsa object to have the most specific available
handler (from a tsio module).
api.timeseries() will do the lookup automatically now.
1 files changed, 3 insertions(+), 5 deletions(-)

M tshistory/cli.py
M tshistory/cli.py +3 -5
@@ 5,7 5,6 @@ import click
 from sqlalchemy import create_engine
 
 from dbcache import api as storeapi
-from tshistory.tsio import timeseries as tshclass
 from tshistory.api import timeseries
 from tshistory.util import (
     find_dburi,

          
@@ 94,12 93,11 @@ def dbversions(db_uri, namespace='tsh'):
 @click.option('--namespace', default='tsh')
 def shell(db_uri, namespace='tsh'):
     uri = find_dburi(db_uri)
-    tsa = timeseries(  # noqa: F841
+    tsa = timeseries(  # noqa
         uri,
-        namespace,
-        handler=tshclass
+        namespace
     )
-    store = storeapi.kvstore(  # noqa: F841
+    store = storeapi.kvstore(  # noqa
         uri,
         namespace=f'{namespace}-kvstore'
     )