~mysql/myconnpy/1.0

« back to all changes in this revision

Viewing changes to mysql/connector/constants.py

  • Committer: Geert Vanderkelen
  • Date: 2009-11-26 16:14:48 UTC
  • Revision ID: geert.vanderkelen@sun.com-20091126161448-k6d2v7cxeteai13b
Copyright/License: some changes how they are included in source

* Making sure that there are docstrings in all module source files, and
using hashes to comment the license notice.
* Adding EXCEPTIONS-CLIENT with the FOSS License Exception, pointing to
the www.mysql.com website.
* Some more updates here and there, but nothing to the code itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
"""
3
 
Connector/Python, native MySQL driver written in Python.
4
 
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
5
 
 
6
 
This program is free software; you can redistribute it and/or modify
7
 
it under the terms of the GNU General Public License as published by
8
 
the Free Software Foundation; either version 2 of the License, or
9
 
(at your option) any later version.
10
 
 
11
 
This program is distributed in the hope that it will be useful,
12
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
GNU General Public License for more details.
15
 
 
16
 
You should have received a copy of the GNU General Public License along
17
 
with this program; if not, write to the Free Software Foundation, Inc.,
18
 
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
1
# MySQL Connector/Python - MySQL driver written in Python.
 
2
# Copyright 2009 Sun Microsystems, Inc. All rights reserved
 
3
# Use is subject to license terms. (See COPYING)
 
4
 
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation.
 
8
 
9
# There are special exceptions to the terms and conditions of the GNU
 
10
# General Public License as it is applied to this software. View the
 
11
# full text of the exception in file EXCEPTIONS-CLIENT in the directory
 
12
# of this software distribution or see the FOSS License Exception at
 
13
# www.mysql.com.
 
14
 
15
# This program is distributed in the hope that it will be useful,
 
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
# GNU General Public License for more details.
 
19
 
20
# You should have received a copy of the GNU General Public License
 
21
# along with this program; if not, write to the Free Software
 
22
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
23
 
 
24
"""Various MySQL constants and character sets
19
25
"""
20
26
 
21
27
from errors import ProgrammingError