From 310bf348521e25f9142e5a62dc206555b83e1a68 Mon Sep 17 00:00:00 2001 From: Aleksey Yeschenko Date: Fri, 8 Feb 2013 21:49:31 +0300 Subject: [PATCH] cqlsh: ninja-fix indentation in Shell constructor --- bin/cqlsh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/cqlsh b/bin/cqlsh index 967f2f12db..be4ecfc8b4 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -593,13 +593,13 @@ class Shell(cmd.Cmd): self.conn = use_conn else: self.conn = cql.connect(hostname, port, user=username, password=password) - self.set_expanded_cql_version(cqlver) - # we could set the keyspace through cql.connect(), but as of 1.0.10, - # it doesn't quote the keyspace for USE :( - if keyspace is not None: - tempcurs = self.conn.cursor() - tempcurs.execute('USE %s;' % self.cql_protect_name(keyspace)) - tempcurs.close() + self.set_expanded_cql_version(cqlver) + # we could set the keyspace through cql.connect(), but as of 1.0.10, + # it doesn't quote the keyspace for USE :( + if keyspace is not None: + tempcurs = self.conn.cursor() + tempcurs.execute('USE %s;' % self.cql_protect_name(keyspace)) + tempcurs.close() self.cursor = self.conn.cursor() self.current_keyspace = keyspace