cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject git commit: cqlsh: ninja-fix indentation in Shell constructor
Date Fri, 08 Feb 2013 18:50:23 GMT
Updated Branches:
  refs/heads/cassandra-1.1 6bddbb2dd -> 310bf3485


cqlsh: ninja-fix indentation in Shell constructor


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/310bf348
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/310bf348
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/310bf348

Branch: refs/heads/cassandra-1.1
Commit: 310bf348521e25f9142e5a62dc206555b83e1a68
Parents: 6bddbb2
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Fri Feb 8 21:49:31 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri Feb 8 21:49:31 2013 +0300

----------------------------------------------------------------------
 bin/cqlsh |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/310bf348/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 967f2f1..be4ecfc 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


Mime
View raw message