Mercurial > p > mysql-python > mysqldb-2
view make_ER.sh @ 23:1c0ff5eb071b MySQLdb
Get rid of 2.6 deprecation warnings on Exception style, and cleanly detect the
python version from sys.hexversion .
https://sourceforge.net/tracker/index.php?func=detail&aid=2122496&group_id=22307&atid=374932
author | kylev |
---|---|
date | Fri, 06 Feb 2009 08:21:03 +0000 |
parents | 7773efbe9b30 |
children |
line wrap: on
line source
#!/bin/sh echo '""" MySQL ER Constants ------------------ These constants are error codes for the bulk of the error conditions that may occur. """ __revision__ = "$Revision$"[11:-2] __author__ = "$Author$"[9:-2] ' sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h