cqlsh: ninja-fix indentation in Shell constructor

This commit is contained in:
Aleksey Yeschenko 2013-02-08 21:49:31 +03:00
parent 6bddbb2dd2
commit 310bf34852
1 changed files with 7 additions and 7 deletions

View File

@ -593,13 +593,13 @@ class Shell(cmd.Cmd):
self.conn = use_conn self.conn = use_conn
else: else:
self.conn = cql.connect(hostname, port, user=username, password=password) self.conn = cql.connect(hostname, port, user=username, password=password)
self.set_expanded_cql_version(cqlver) self.set_expanded_cql_version(cqlver)
# we could set the keyspace through cql.connect(), but as of 1.0.10, # we could set the keyspace through cql.connect(), but as of 1.0.10,
# it doesn't quote the keyspace for USE :( # it doesn't quote the keyspace for USE :(
if keyspace is not None: if keyspace is not None:
tempcurs = self.conn.cursor() tempcurs = self.conn.cursor()
tempcurs.execute('USE %s;' % self.cql_protect_name(keyspace)) tempcurs.execute('USE %s;' % self.cql_protect_name(keyspace))
tempcurs.close() tempcurs.close()
self.cursor = self.conn.cursor() self.cursor = self.conn.cursor()
self.current_keyspace = keyspace self.current_keyspace = keyspace