summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-01-08 14:08:15 +0100
committerTobias Klauser <tklauser@distanz.ch>2013-01-08 14:08:15 +0100
commit4247e840d2a348239990fbfe34fe4eccf6ce1d67 (patch)
tree17b99d0ca11a12fa7db4b286b41c86deb535c3df /scripts
parent369685d0dc26523d57ac71a682f046db34ba6851 (diff)
scripts: csv2sto.py: Add copyright/license and fix typo inmessage
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/csv2sto.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/csv2sto.py b/scripts/csv2sto.py
index 9609a99..0f0e697 100755
--- a/scripts/csv2sto.py
+++ b/scripts/csv2sto.py
@@ -1,4 +1,11 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2012-2013 Tobias Klauser <tklauser@distanz.ch>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
import os, sys
import getopt
@@ -66,12 +73,12 @@ def main():
if tot_nRows == 0:
tot_nRows = nRows
elif tot_nRows != nRows:
- print "Error: Number of rows in CSV files does not match"
+ print "Error: Number of rows in CSV files do not match"
sys.exit(-1)
if tot_nCols == 0:
tot_nCols = nCols
elif tot_nCols != nCols:
- print "Error: Number of columns in CSV files does not match"
+ print "Error: Number of columns in CSV files do not match"
sys.exit(-1)
fd.close()