Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed spelling.

  • Loading branch information...
commit fec2dbca1fa860d351907d3c2f063105e188a7a6 1 parent a93a4a7
@ghaering ghaering authored
Showing with 11 additions and 15 deletions.
  1. +10 −14 cross_bdist_wininst.py
  2. +1 −1  misc/patterns.py
View
24 cross_bdist_wininst.py
@@ -312,16 +312,16 @@ def get_exe_bytes (self):
# as the real sys.version string for the build.
cur_version = get_python_version()
if self.target_version and self.target_version != cur_version:
- # If the target version is *later* than us, then we assume they
- # use what we use
- # string compares seem wrong, but are what sysconfig.py itself uses
- if self.target_version > cur_version:
- bv = get_build_version()
+ if self.target_version < "2.3":
+ raise NotImplementedError
+ elif self.target_version == "2.3":
+ bv = "6"
+ elif self.target_version in ("2.4", "2.5"):
+ bv = "7.1"
+ elif self.target_version in ("2.6", "2.7"):
+ bv = "9.0"
else:
- if self.target_version < "2.4":
- bv = "6"
- else:
- bv = "7.1"
+ raise NotImplementedError
else:
# for current version - use authoritative check.
bv = get_build_version()
@@ -334,11 +334,7 @@ def get_exe_bytes (self):
# The uninstallers need to be available in $PYEXT_CROSS/uninst/*.exe
# Use http://oss.itsystementwicklung.de/hg/pyext_cross_linux_to_win32/
# and copy it alongside your pysqlite checkout.
- if self.target_version in ("2.3", "2.4"):
- uninst_ver = "6"
- else:
- uninst_ver = "7.1"
- filename = os.path.join(directory, os.path.join(os.environ["PYEXT_CROSS"], "uninst", "wininst-%s.exe" % uninst_ver))
+ filename = os.path.join(directory, os.path.join(os.environ["PYEXT_CROSS"], "uninst", "wininst-%s.exe" % bv))
return open(filename, "rb").read()
# class bdist_wininst
View
2  misc/patterns.py
@@ -23,7 +23,7 @@ def read_modify_write():
#
# Advantage: Low memory consumption, good for large resultsets, data is
# fetched on demand.
- # Disadvantage: Dataase locked as long as you iterate over cursor.
+ # Disadvantage: Database locked as long as you iterate over cursor.
#
# 2. "Eager reading"
# cur.fetchone() to fetch one row
Please sign in to comment.
Something went wrong with that request. Please try again.