Bump version. Minor Alpha Linux update. Clear errorhandler on close.

This commit is contained in:
adustman
2002-03-14 20:43:51 +00:00
parent 058e71d15d
commit 127059fa73
5 changed files with 8 additions and 5 deletions

View File

@ -19,8 +19,8 @@ version_info = (
0, 0,
9, 9,
2, 2,
"alpha", "beta",
2) 1)
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3] if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5] else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]

View File

@ -73,6 +73,7 @@ class Connection:
def __del__(self): def __del__(self):
if hasattr(self, '_db'): self.close() if hasattr(self, '_db'): self.close()
print "Alas! I die!"
def close(self): def close(self):
"""Close the connection. No further activity possible.""" """Close the connection. No further activity possible."""

View File

@ -46,8 +46,8 @@ class BaseCursor:
def close(self): def close(self):
"""Close the cursor. No further queries will be possible.""" """Close the cursor. No further queries will be possible."""
if not self.connection: return
self.connection = None self.connection = None
self.errorhandler = None
def _check_executed(self): def _check_executed(self):
if not self._executed: if not self._executed:

View File

@ -1,4 +1,4 @@
#define version_info "(0,9,2,'alpha',2)" #define version_info "(0,9,2,'beta',1)"
#define __version__ "0.9.2" #define __version__ "0.9.2"
/* /*
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify

View File

@ -63,6 +63,8 @@ elif sys.platform == "cygwin":
extra_compile_args = ['-DMS_WIN32'] extra_compile_args = ['-DMS_WIN32']
elif sys.platform[:6] == "darwin": # Mac OS X elif sys.platform[:6] == "darwin": # Mac OS X
extra_link_args = ['-flat_namespace'] extra_link_args = ['-flat_namespace']
elif sys.platform == 'linux2' and os.environ.get('HOSTTYPE') == 'alpha':
libraries.extend(['ots', 'cpml'])
elif os.name == "posix": # UNIX-ish platforms not covered above elif os.name == "posix": # UNIX-ish platforms not covered above
pass # default should work pass # default should work
else: else:
@ -90,7 +92,7 @@ MySQLdb. MySQLdb is free software.
setup (# Distribution meta-data setup (# Distribution meta-data
name = "MySQL-python", name = "MySQL-python",
version = "0.9.2a2", version = "0.9.2b1",
description = "An interface to MySQL", description = "An interface to MySQL",
long_description=long_description, long_description=long_description,
author = "Andy Dustman", author = "Andy Dustman",