Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab6f294

Browse filesBrowse files
author
kylev
committed
Clean up some whitespace, test python version the same (cleaner) way that trunk does
1 parent 1a728ed commit ab6f294
Copy full SHA for ab6f294

File tree

Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed

‎MySQLdb/README

Copy file name to clipboardExpand all lines: MySQLdb/README
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Prerequisites
1515
* Versions lower than 2.3 WON'T WORK.
1616

1717
* 2.4 is the primary test environment.
18-
18+
1919
* Red Hat Linux:
2020

2121
- Make sure you have the Python development headers and libraries
@@ -43,7 +43,7 @@ Prerequisites
4343
supported, and won't be until MySQLdb-1.3 or 2.0, if ever.
4444

4545
* MySQL-5.0 is supported and tested, including stored procedures.
46-
46+
4747
* MySQL-5.1 is supported (currently a release candidate) but untested.
4848
It should work.
4949

@@ -93,7 +93,7 @@ Prerequisites
9393

9494
* May be needed for MySQL-4.0 or newer, depending on compilation
9595
options. If you need it, you probably already have it.
96-
96+
9797
- you may need openssl-devel on some platforms
9898

9999
+ C compiler
@@ -134,7 +134,7 @@ edit the [options] section of site.cfg:
134134
if True, try to link against a static library; otherwise link
135135
against dynamic libraries (default). You may need static linking
136136
to use the embedded server.
137-
137+
138138

139139
Finally, putting it together::
140140

@@ -187,7 +187,7 @@ their own packages available.
187187

188188
RPMs
189189
....
190-
190+
191191
If you prefer to install RPMs, you can use the bdist_rpm command with
192192
setup.py. This only builds the RPM; it does not install it. You may
193193
want to use the --python=XXX option, where XXX is the name of the

‎MySQLdb/setup.py

Copy file name to clipboardExpand all lines: MySQLdb/setup.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import sys
55
from setuptools import setup, Extension
66

7-
if sys.version_info < (2, 3):
8-
raise Error("Python-2.3 or newer is required")
7+
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
8+
raise Error("Python 2.3 or newer is required")
99

1010
if os.name == "posix":
1111
from setup_posix import get_config

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.