annotate make_ER.sh @ 54:6e31278d3433 MySQLdb

There's no good reason to delay imports when the module is (1) useless without it or (2) you do the same late import more than once.
author kylev
date Mon, 23 Feb 2009 23:52:44 +0000
parents 7773efbe9b30
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
1 #!/bin/sh
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
2 echo '"""
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
3 MySQL ER Constants
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
4 ------------------
8
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
5
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
6 These constants are error codes for the bulk of the error conditions
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
7 that may occur.
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
8
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
9 """
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
10 __revision__ = "$Revision$"[11:-2]
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
11 __author__ = "$Author$"[9:-2]
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 8
diff changeset
12 '
8
fa8974a41c76 New error handling code, plus some small fixes from 1.2
adustman
parents:
diff changeset
13 sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h