Update of /cvsroot/monetdb/clients/src/examples/python
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21603/src/examples/python

Modified Files:
      Tag: Clients_1-20
        sqlsample.py.in 
Log Message:
Converted TABs to spaces and deleted trailing white space.

Index: sqlsample.py.in
===================================================================
RCS file: /cvsroot/monetdb/clients/src/examples/python/sqlsample.py.in,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- sqlsample.py.in     21 Oct 2007 20:18:47 -0000      1.1.2.3
+++ sqlsample.py.in     22 Oct 2007 12:13:35 -0000      1.1.2.4
@@ -20,9 +20,9 @@
 import sys
 
 if len(sys.argv) > 3:
-       dbh = 
MonetSQLdb.Connection(dbfarm=sys.argv[1],dbname=sys.argv[2],version=int(sys.argv[3]))
+    dbh = 
MonetSQLdb.Connection(dbfarm=sys.argv[1],dbname=sys.argv[2],version=int(sys.argv[3]))
 else:
-       dbh = MonetSQLdb.Connection(port=sys.argv[1],dbname=sys.argv[2])
+    dbh = MonetSQLdb.Connection(port=sys.argv[1],dbname=sys.argv[2])
 
 cursor = dbh.cursor();
 cursor.execute('select 1;')
@@ -34,9 +34,9 @@
 
 # deliberately executing a wrong SQL statement:
 try:
-       cursor.execute('( xyz 1);')
-except (RuntimeError), e: 
-       print e
+    cursor.execute('( xyz 1);')
+except (RuntimeError), e:
+    print e
 
 cursor.execute('create table python_table (i smallint,s string);');
 cursor.execute('insert into python_table values ( 3, \'three\');');


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to