[pypy-commit] pypy list-strategies: merge default
cfbolz
noreply at buildbot.pypy.org
Fri Sep 23 13:14:28 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: list-strategies
Changeset: r47510:df327e987aaf
Date: 2011-05-24 12:08 +0200
http://bitbucket.org/pypy/pypy/changeset/df327e987aaf/
Log: merge default
diff too long, truncating to 10000 out of 90401 lines
diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -17,12 +17,15 @@
^pypy/module/cpyext/test/.+\.manifest$
^pypy/module/test_lib_pypy/ctypes_tests/.+\.o$
^pypy/doc/.+\.html$
+^pypy/doc/config/.+\.rst$
^pypy/doc/basicblock\.asc$
^pypy/doc/.+\.svninfo$
^pypy/translator/c/src/libffi_msvc/.+\.obj$
^pypy/translator/c/src/libffi_msvc/.+\.dll$
^pypy/translator/c/src/libffi_msvc/.+\.lib$
^pypy/translator/c/src/libffi_msvc/.+\.exp$
+^pypy/translator/c/src/cjkcodecs/.+\.o$
+^pypy/translator/c/src/cjkcodecs/.+\.obj$
^pypy/translator/jvm/\.project$
^pypy/translator/jvm/\.classpath$
^pypy/translator/jvm/eclipse-bin$
diff --git a/.hgtags b/.hgtags
new file mode 100644
--- /dev/null
+++ b/.hgtags
@@ -0,0 +1,1 @@
+b590cf6de4190623aad9aa698694c22e614d67b9 release-1.5
diff --git a/LICENSE b/LICENSE
--- a/LICENSE
+++ b/LICENSE
@@ -37,78 +37,154 @@
Armin Rigo
Maciej Fijalkowski
Carl Friedrich Bolz
+ Amaury Forgeot d'Arc
+ Antonio Cuni
Samuele Pedroni
- Antonio Cuni
Michael Hudson
+ Holger Krekel
Christian Tismer
- Holger Krekel
+ Benjamin Peterson
Eric van Riet Paap
+ Anders Chrigström
+ Håkan Ardö
Richard Emslie
- Anders Chrigstrom
- Amaury Forgeot d Arc
- Aurelien Campeas
+ Dan Villiom Podlaski Christiansen
+ Alexander Schremmer
+ Alex Gaynor
+ David Schneider
+ Aurelién Campeas
Anders Lehmann
+ Camillo Bruni
Niklaus Haldimann
+ Leonardo Santagada
+ Toon Verwaest
Seo Sanghyeon
- Leonardo Santagada
Lawrence Oluyede
+ Bartosz Skowron
Jakub Gustak
Guido Wesdorp
- Benjamin Peterson
- Alexander Schremmer
+ Adrien Di Mascio
+ Laura Creighton
+ Ludovic Aubry
Niko Matsakis
- Ludovic Aubry
+ Daniel Roberts
+ Jason Creighton
+ Jacob Hallén
Alex Martelli
- Toon Verwaest
+ Anders Hammarquist
+ Jan de Mooij
Stephan Diehl
- Adrien Di Mascio
+ Michael Foord
Stefan Schwarzer
Tomek Meka
Patrick Maupin
- Jacob Hallen
- Laura Creighton
Bob Ippolito
- Camillo Bruni
- Simon Burton
Bruno Gola
Alexandre Fayolle
Marius Gedminas
+ Simon Burton
+ Jean-Paul Calderone
+ John Witulski
+ Wim Lavrijsen
+ Andreas Stührk
+ Jean-Philippe St. Pierre
Guido van Rossum
+ Pavel Vinogradov
Valentino Volonghi
+ Paul deGrandis
Adrian Kuhn
- Paul deGrandis
+ tav
+ Georg Brandl
Gerald Klix
Wanja Saatkamp
- Anders Hammarquist
+ Boris Feigin
Oscar Nierstrasz
+ Dario Bertini
+ David Malcolm
Eugene Oden
+ Henry Mason
Lukas Renggli
Guenter Jantzen
+ Ronny Pfannschmidt
+ Bert Freudenberg
+ Amit Regmi
+ Ben Young
+ Nicolas Chauvat
+ Andrew Durdin
+ Michael Schneider
+ Nicholas Riley
+ Rocco Moretti
+ Gintautas Miliauskas
+ Michael Twomey
+ Igor Trindade Oliveira
+ Lucian Branescu Mihaila
+ Olivier Dormond
+ Jared Grubb
+ Karl Bartel
+ Gabriel Lavoie
+ Brian Dorsey
+ Victor Stinner
+ Stuart Williams
+ Toby Watson
+ Antoine Pitrou
+ Justas Sadzevicius
+ Neil Shepperd
+ Mikael Schönenberg
+ Gasper Zejn
+ Jonathan David Riehl
+ Elmo Mäntynen
+ Anders Qvist
+ Beatrice Düring
+ Alexander Sedov
+ Vincent Legoll
+ Alan McIntyre
+ Romain Guillebert
+ Alex Perry
+ Jens-Uwe Mager
+ Dan Stromberg
+ Lukas Diekmann
+ Carl Meyer
+ Pieter Zieschang
+ Alejandro J. Cura
+ Sylvain Thenault
+ Travis Francis Athougies
+ Henrik Vendelbo
+ Lutz Paelike
+ Jacob Oscarson
+ Martin Blais
+ Lucio Torre
+ Lene Wagner
+ Miguel de Val Borro
+ Ignas Mikalajunas
+ Artur Lisiecki
+ Joshua Gilbert
+ Godefroid Chappelle
+ Yusei Tahara
+ Christopher Armstrong
+ Stephan Busemann
+ Gustavo Niemeyer
+ William Leslie
+ Akira Li
+ Kristján Valur Jónsson
+ Bobby Impollonia
+ Andrew Thompson
+ Anders Sigfridsson
+ Jacek Generowicz
+ Dan Colish
+ Sven Hager
+ Zooko Wilcox-O Hearn
+ Anders Hammarquist
Dinu Gherman
- Bartosz Skowron
- Georg Brandl
- Ben Young
- Jean-Paul Calderone
- Nicolas Chauvat
- Rocco Moretti
- Michael Twomey
- boria
- Jared Grubb
- Olivier Dormond
- Stuart Williams
- Jens-Uwe Mager
- Justas Sadzevicius
- Mikael Schönenberg
- Brian Dorsey
- Jonathan David Riehl
- Beatrice During
- Elmo Mäntynen
- Andreas Friedge
- Alex Gaynor
- Anders Qvist
- Alan McIntyre
- Bert Freudenberg
- Tav
+ Dan Colish
+ Daniel Neuhäuser
+ Michael Chermside
+ Konrad Delong
+ Anna Ravencroft
+ Greg Price
+ Armin Ronacher
+ Jim Baker
+ Philip Jenvey
+ Rodrigo Araújo
Heinrich-Heine University, Germany
Open End AB (formerly AB Strakt), Sweden
diff --git a/README b/README
--- a/README
+++ b/README
@@ -15,10 +15,10 @@
The getting-started document will help guide you:
- http://codespeak.net/pypy/dist/pypy/doc/getting-started.html
+ http://doc.pypy.org/en/latest/getting-started.html
It will also point you to the rest of the documentation which is generated
from files in the pypy/doc directory within the source repositories. Enjoy
and send us feedback!
- the pypy-dev team <pypy-dev at codespeak.net>
+ the pypy-dev team <pypy-dev at python.org>
diff --git a/_pytest/__init__.py b/_pytest/__init__.py
--- a/_pytest/__init__.py
+++ b/_pytest/__init__.py
@@ -1,2 +1,2 @@
#
-__version__ = '2.0.3.dev3'
+__version__ = '2.0.3'
diff --git a/_pytest/assertion.py b/_pytest/assertion.py
--- a/_pytest/assertion.py
+++ b/_pytest/assertion.py
@@ -16,7 +16,8 @@
# py._code._assertionnew to detect this plugin was loaded and in
# turn call the hooks defined here as part of the
# DebugInterpreter.
- config._monkeypatch = m = monkeypatch()
+ m = monkeypatch()
+ config._cleanup.append(m.undo)
warn_about_missing_assertion()
if not config.getvalue("noassert") and not config.getvalue("nomagic"):
def callbinrepr(op, left, right):
@@ -29,9 +30,6 @@
'AssertionError', py.code._AssertionError)
m.setattr(py.code, '_reprcompare', callbinrepr)
-def pytest_unconfigure(config):
- config._monkeypatch.undo()
-
def warn_about_missing_assertion():
try:
assert False
diff --git a/_pytest/config.py b/_pytest/config.py
--- a/_pytest/config.py
+++ b/_pytest/config.py
@@ -12,6 +12,10 @@
config.trace.root.setwriter(sys.stderr.write)
return config
+def pytest_unconfigure(config):
+ for func in config._cleanup:
+ func()
+
class Parser:
""" Parser for command line arguments. """
@@ -251,7 +255,8 @@
self._conftest = Conftest(onimport=self._onimportconftest)
self.hook = self.pluginmanager.hook
self._inicache = {}
-
+ self._cleanup = []
+
@classmethod
def fromdictargs(cls, option_dict, args):
""" constructor useable for subprocesses. """
diff --git a/_pytest/core.py b/_pytest/core.py
--- a/_pytest/core.py
+++ b/_pytest/core.py
@@ -265,8 +265,15 @@
config.hook.pytest_unconfigure(config=config)
config.pluginmanager.unregister(self)
- def notify_exception(self, excinfo):
- excrepr = excinfo.getrepr(funcargs=True, showlocals=True)
+ def notify_exception(self, excinfo, option=None):
+ if option and option.fulltrace:
+ style = "long"
+ else:
+ style = "native"
+ excrepr = excinfo.getrepr(funcargs=True,
+ showlocals=getattr(option, 'showlocals', False),
+ style=style,
+ )
res = self.hook.pytest_internalerror(excrepr=excrepr)
if not py.builtin.any(res):
for line in str(excrepr).split("\n"):
diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py
--- a/_pytest/junitxml.py
+++ b/_pytest/junitxml.py
@@ -5,8 +5,42 @@
import py
import os
+import re
+import sys
import time
+
+# Python 2.X and 3.X compatibility
+try:
+ unichr(65)
+except NameError:
+ unichr = chr
+try:
+ unicode('A')
+except NameError:
+ unicode = str
+try:
+ long(1)
+except NameError:
+ long = int
+
+
+# We need to get the subset of the invalid unicode ranges according to
+# XML 1.0 which are valid in this python build. Hence we calculate
+# this dynamically instead of hardcoding it. The spec range of valid
+# chars is: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
+# | [#x10000-#x10FFFF]
+_illegal_unichrs = [(0x00, 0x08), (0x0B, 0x0C), (0x0E, 0x19),
+ (0xD800, 0xDFFF), (0xFDD0, 0xFFFF)]
+_illegal_ranges = [unicode("%s-%s") % (unichr(low), unichr(high))
+ for (low, high) in _illegal_unichrs
+ if low < sys.maxunicode]
+illegal_xml_re = re.compile(unicode('[%s]') %
+ unicode('').join(_illegal_ranges))
+del _illegal_unichrs
+del _illegal_ranges
+
+
def pytest_addoption(parser):
group = parser.getgroup("terminal reporting")
group.addoption('--junitxml', action="store", dest="xmlpath",
@@ -28,6 +62,7 @@
del config._xml
config.pluginmanager.unregister(xml)
+
class LogXML(object):
def __init__(self, logfile, prefix):
self.logfile = logfile
@@ -55,7 +90,14 @@
self.test_logs.append("</testcase>")
def appendlog(self, fmt, *args):
- args = tuple([py.xml.escape(arg) for arg in args])
+ def repl(matchobj):
+ i = ord(matchobj.group())
+ if i <= 0xFF:
+ return unicode('#x%02X') % i
+ else:
+ return unicode('#x%04X') % i
+ args = tuple([illegal_xml_re.sub(repl, py.xml.escape(arg))
+ for arg in args])
self.test_logs.append(fmt % args)
def append_pass(self, report):
diff --git a/_pytest/main.py b/_pytest/main.py
--- a/_pytest/main.py
+++ b/_pytest/main.py
@@ -71,7 +71,7 @@
session.exitstatus = EXIT_INTERRUPTED
except:
excinfo = py.code.ExceptionInfo()
- config.pluginmanager.notify_exception(excinfo)
+ config.pluginmanager.notify_exception(excinfo, config.option)
session.exitstatus = EXIT_INTERNALERROR
if excinfo.errisinstance(SystemExit):
sys.stderr.write("mainloop: caught Spurious SystemExit!\n")
diff --git a/_pytest/pytester.py b/_pytest/pytester.py
--- a/_pytest/pytester.py
+++ b/_pytest/pytester.py
@@ -236,13 +236,14 @@
def _makefile(self, ext, args, kwargs):
items = list(kwargs.items())
if args:
- source = "\n".join(map(str, args)) + "\n"
+ source = py.builtin._totext("\n").join(
+ map(py.builtin._totext, args)) + py.builtin._totext("\n")
basename = self.request.function.__name__
items.insert(0, (basename, source))
ret = None
for name, value in items:
p = self.tmpdir.join(name).new(ext=ext)
- source = str(py.code.Source(value)).lstrip()
+ source = py.builtin._totext(py.code.Source(value)).lstrip()
p.write(source.encode("utf-8"), "wb")
if ret is None:
ret = p
diff --git a/_pytest/resultlog.py b/_pytest/resultlog.py
--- a/_pytest/resultlog.py
+++ b/_pytest/resultlog.py
@@ -74,7 +74,7 @@
elif report.failed:
longrepr = str(report.longrepr)
elif report.skipped:
- longrepr = str(report.longrepr)
+ longrepr = str(report.longrepr[2])
self.log_outcome(report, code, longrepr)
def pytest_collectreport(self, report):
diff --git a/_pytest/tmpdir.py b/_pytest/tmpdir.py
--- a/_pytest/tmpdir.py
+++ b/_pytest/tmpdir.py
@@ -48,15 +48,12 @@
self.trace("finish")
def pytest_configure(config):
- config._mp = mp = monkeypatch()
+ mp = monkeypatch()
t = TempdirHandler(config)
+ config._cleanup.extend([mp.undo, t.finish])
mp.setattr(config, '_tmpdirhandler', t, raising=False)
mp.setattr(pytest, 'ensuretemp', t.ensuretemp, raising=False)
-def pytest_unconfigure(config):
- config._tmpdirhandler.finish()
- config._mp.undo()
-
def pytest_funcarg__tmpdir(request):
"""return a temporary directory path object
which is unique to each test function invocation,
diff --git a/lib-python/2.7.0/BaseHTTPServer.py b/lib-python/2.7/BaseHTTPServer.py
rename from lib-python/2.7.0/BaseHTTPServer.py
rename to lib-python/2.7/BaseHTTPServer.py
diff --git a/lib-python/2.7.0/Bastion.py b/lib-python/2.7/Bastion.py
rename from lib-python/2.7.0/Bastion.py
rename to lib-python/2.7/Bastion.py
diff --git a/lib-python/2.7.0/CGIHTTPServer.py b/lib-python/2.7/CGIHTTPServer.py
rename from lib-python/2.7.0/CGIHTTPServer.py
rename to lib-python/2.7/CGIHTTPServer.py
diff --git a/lib-python/2.7.0/ConfigParser.py b/lib-python/2.7/ConfigParser.py
rename from lib-python/2.7.0/ConfigParser.py
rename to lib-python/2.7/ConfigParser.py
diff --git a/lib-python/2.7.0/Cookie.py b/lib-python/2.7/Cookie.py
rename from lib-python/2.7.0/Cookie.py
rename to lib-python/2.7/Cookie.py
diff --git a/lib-python/2.7.0/DocXMLRPCServer.py b/lib-python/2.7/DocXMLRPCServer.py
rename from lib-python/2.7.0/DocXMLRPCServer.py
rename to lib-python/2.7/DocXMLRPCServer.py
diff --git a/lib-python/2.7.0/HTMLParser.py b/lib-python/2.7/HTMLParser.py
rename from lib-python/2.7.0/HTMLParser.py
rename to lib-python/2.7/HTMLParser.py
diff --git a/lib-python/2.7.0/MimeWriter.py b/lib-python/2.7/MimeWriter.py
rename from lib-python/2.7.0/MimeWriter.py
rename to lib-python/2.7/MimeWriter.py
diff --git a/lib-python/2.7.0/Queue.py b/lib-python/2.7/Queue.py
rename from lib-python/2.7.0/Queue.py
rename to lib-python/2.7/Queue.py
diff --git a/lib-python/2.7.0/SimpleHTTPServer.py b/lib-python/2.7/SimpleHTTPServer.py
rename from lib-python/2.7.0/SimpleHTTPServer.py
rename to lib-python/2.7/SimpleHTTPServer.py
diff --git a/lib-python/2.7.0/SimpleXMLRPCServer.py b/lib-python/2.7/SimpleXMLRPCServer.py
rename from lib-python/2.7.0/SimpleXMLRPCServer.py
rename to lib-python/2.7/SimpleXMLRPCServer.py
diff --git a/lib-python/2.7.0/SocketServer.py b/lib-python/2.7/SocketServer.py
rename from lib-python/2.7.0/SocketServer.py
rename to lib-python/2.7/SocketServer.py
diff --git a/lib-python/2.7.0/StringIO.py b/lib-python/2.7/StringIO.py
rename from lib-python/2.7.0/StringIO.py
rename to lib-python/2.7/StringIO.py
diff --git a/lib-python/2.7.0/UserDict.py b/lib-python/2.7/UserDict.py
rename from lib-python/2.7.0/UserDict.py
rename to lib-python/2.7/UserDict.py
diff --git a/lib-python/2.7.0/UserList.py b/lib-python/2.7/UserList.py
rename from lib-python/2.7.0/UserList.py
rename to lib-python/2.7/UserList.py
diff --git a/lib-python/2.7.0/UserString.py b/lib-python/2.7/UserString.py
rename from lib-python/2.7.0/UserString.py
rename to lib-python/2.7/UserString.py
diff --git a/lib-python/2.7.0/_LWPCookieJar.py b/lib-python/2.7/_LWPCookieJar.py
rename from lib-python/2.7.0/_LWPCookieJar.py
rename to lib-python/2.7/_LWPCookieJar.py
diff --git a/lib-python/2.7.0/_MozillaCookieJar.py b/lib-python/2.7/_MozillaCookieJar.py
rename from lib-python/2.7.0/_MozillaCookieJar.py
rename to lib-python/2.7/_MozillaCookieJar.py
diff --git a/lib-python/2.7.0/__future__.py b/lib-python/2.7/__future__.py
rename from lib-python/2.7.0/__future__.py
rename to lib-python/2.7/__future__.py
diff --git a/lib-python/2.7.0/__phello__.foo.py b/lib-python/2.7/__phello__.foo.py
rename from lib-python/2.7.0/__phello__.foo.py
rename to lib-python/2.7/__phello__.foo.py
diff --git a/lib-python/2.7.0/_abcoll.py b/lib-python/2.7/_abcoll.py
rename from lib-python/2.7.0/_abcoll.py
rename to lib-python/2.7/_abcoll.py
diff --git a/lib-python/2.7.0/_pyio.py b/lib-python/2.7/_pyio.py
rename from lib-python/2.7.0/_pyio.py
rename to lib-python/2.7/_pyio.py
diff --git a/lib-python/2.7.0/_strptime.py b/lib-python/2.7/_strptime.py
rename from lib-python/2.7.0/_strptime.py
rename to lib-python/2.7/_strptime.py
diff --git a/lib-python/2.7.0/_threading_local.py b/lib-python/2.7/_threading_local.py
rename from lib-python/2.7.0/_threading_local.py
rename to lib-python/2.7/_threading_local.py
diff --git a/lib-python/2.7.0/_weakrefset.py b/lib-python/2.7/_weakrefset.py
rename from lib-python/2.7.0/_weakrefset.py
rename to lib-python/2.7/_weakrefset.py
diff --git a/lib-python/2.7.0/abc.py b/lib-python/2.7/abc.py
rename from lib-python/2.7.0/abc.py
rename to lib-python/2.7/abc.py
diff --git a/lib-python/2.7.0/aifc.py b/lib-python/2.7/aifc.py
rename from lib-python/2.7.0/aifc.py
rename to lib-python/2.7/aifc.py
diff --git a/lib-python/2.7.0/antigravity.py b/lib-python/2.7/antigravity.py
rename from lib-python/2.7.0/antigravity.py
rename to lib-python/2.7/antigravity.py
diff --git a/lib-python/2.7.0/anydbm.py b/lib-python/2.7/anydbm.py
rename from lib-python/2.7.0/anydbm.py
rename to lib-python/2.7/anydbm.py
diff --git a/lib-python/2.7.0/argparse.py b/lib-python/2.7/argparse.py
rename from lib-python/2.7.0/argparse.py
rename to lib-python/2.7/argparse.py
diff --git a/lib-python/2.7.0/ast.py b/lib-python/2.7/ast.py
rename from lib-python/2.7.0/ast.py
rename to lib-python/2.7/ast.py
diff --git a/lib-python/2.7.0/asynchat.py b/lib-python/2.7/asynchat.py
rename from lib-python/2.7.0/asynchat.py
rename to lib-python/2.7/asynchat.py
diff --git a/lib-python/2.7.0/asyncore.py b/lib-python/2.7/asyncore.py
rename from lib-python/2.7.0/asyncore.py
rename to lib-python/2.7/asyncore.py
diff --git a/lib-python/2.7.0/atexit.py b/lib-python/2.7/atexit.py
rename from lib-python/2.7.0/atexit.py
rename to lib-python/2.7/atexit.py
diff --git a/lib-python/2.7.0/audiodev.py b/lib-python/2.7/audiodev.py
rename from lib-python/2.7.0/audiodev.py
rename to lib-python/2.7/audiodev.py
diff --git a/lib-python/2.7.0/base64.py b/lib-python/2.7/base64.py
rename from lib-python/2.7.0/base64.py
rename to lib-python/2.7/base64.py
diff --git a/lib-python/2.7.0/bdb.py b/lib-python/2.7/bdb.py
rename from lib-python/2.7.0/bdb.py
rename to lib-python/2.7/bdb.py
diff --git a/lib-python/2.7.0/binhex.py b/lib-python/2.7/binhex.py
rename from lib-python/2.7.0/binhex.py
rename to lib-python/2.7/binhex.py
diff --git a/lib-python/2.7.0/bisect.py b/lib-python/2.7/bisect.py
rename from lib-python/2.7.0/bisect.py
rename to lib-python/2.7/bisect.py
diff --git a/lib-python/2.7.0/bsddb/__init__.py b/lib-python/2.7/bsddb/__init__.py
rename from lib-python/2.7.0/bsddb/__init__.py
rename to lib-python/2.7/bsddb/__init__.py
diff --git a/lib-python/2.7.0/bsddb/db.py b/lib-python/2.7/bsddb/db.py
rename from lib-python/2.7.0/bsddb/db.py
rename to lib-python/2.7/bsddb/db.py
diff --git a/lib-python/2.7.0/bsddb/dbobj.py b/lib-python/2.7/bsddb/dbobj.py
rename from lib-python/2.7.0/bsddb/dbobj.py
rename to lib-python/2.7/bsddb/dbobj.py
diff --git a/lib-python/2.7.0/bsddb/dbrecio.py b/lib-python/2.7/bsddb/dbrecio.py
rename from lib-python/2.7.0/bsddb/dbrecio.py
rename to lib-python/2.7/bsddb/dbrecio.py
diff --git a/lib-python/2.7.0/bsddb/dbshelve.py b/lib-python/2.7/bsddb/dbshelve.py
rename from lib-python/2.7.0/bsddb/dbshelve.py
rename to lib-python/2.7/bsddb/dbshelve.py
diff --git a/lib-python/2.7.0/bsddb/dbtables.py b/lib-python/2.7/bsddb/dbtables.py
rename from lib-python/2.7.0/bsddb/dbtables.py
rename to lib-python/2.7/bsddb/dbtables.py
--- a/lib-python/2.7.0/bsddb/dbtables.py
+++ b/lib-python/2.7/bsddb/dbtables.py
@@ -15,7 +15,7 @@
# This provides a simple database table interface built on top of
# the Python Berkeley DB 3 interface.
#
-_cvsid = '$Id: dbtables.py 79285 2010-03-22 14:22:26Z jesus.cea $'
+_cvsid = '$Id$'
import re
import sys
diff --git a/lib-python/2.7.0/bsddb/dbutils.py b/lib-python/2.7/bsddb/dbutils.py
rename from lib-python/2.7.0/bsddb/dbutils.py
rename to lib-python/2.7/bsddb/dbutils.py
diff --git a/lib-python/2.7.0/bsddb/test/__init__.py b/lib-python/2.7/bsddb/test/__init__.py
rename from lib-python/2.7.0/bsddb/test/__init__.py
rename to lib-python/2.7/bsddb/test/__init__.py
diff --git a/lib-python/2.7.0/bsddb/test/test_all.py b/lib-python/2.7/bsddb/test/test_all.py
rename from lib-python/2.7.0/bsddb/test/test_all.py
rename to lib-python/2.7/bsddb/test/test_all.py
diff --git a/lib-python/2.7.0/bsddb/test/test_associate.py b/lib-python/2.7/bsddb/test/test_associate.py
rename from lib-python/2.7.0/bsddb/test/test_associate.py
rename to lib-python/2.7/bsddb/test/test_associate.py
--- a/lib-python/2.7.0/bsddb/test/test_associate.py
+++ b/lib-python/2.7/bsddb/test/test_associate.py
@@ -233,7 +233,7 @@
self.assertEqual(vals, None, vals)
vals = secDB.pget('Unknown', txn=txn)
- self.assert_(vals[0] == 99 or vals[0] == '99', vals)
+ self.assertTrue(vals[0] == 99 or vals[0] == '99', vals)
vals[1].index('Unknown')
vals[1].index('Unnamed')
vals[1].index('unknown')
@@ -245,9 +245,9 @@
rec = self.cur.first()
while rec is not None:
if type(self.keytype) == type(''):
- self.assert_(int(rec[0])) # for primary db, key is a number
+ self.assertTrue(int(rec[0])) # for primary db, key is a number
else:
- self.assert_(rec[0] and type(rec[0]) == type(0))
+ self.assertTrue(rec[0] and type(rec[0]) == type(0))
count = count + 1
if verbose:
print rec
@@ -262,7 +262,7 @@
# test cursor pget
vals = self.cur.pget('Unknown', flags=db.DB_LAST)
- self.assert_(vals[1] == 99 or vals[1] == '99', vals)
+ self.assertTrue(vals[1] == 99 or vals[1] == '99', vals)
self.assertEqual(vals[0], 'Unknown')
vals[2].index('Unknown')
vals[2].index('Unnamed')
diff --git a/lib-python/2.7.0/bsddb/test/test_basics.py b/lib-python/2.7/bsddb/test/test_basics.py
rename from lib-python/2.7.0/bsddb/test/test_basics.py
rename to lib-python/2.7/bsddb/test/test_basics.py
--- a/lib-python/2.7.0/bsddb/test/test_basics.py
+++ b/lib-python/2.7/bsddb/test/test_basics.py
@@ -612,7 +612,7 @@
d.put("abcde", "ABCDE");
num = d.truncate()
- self.assert_(num >= 1, "truncate returned <= 0 on non-empty database")
+ self.assertTrue(num >= 1, "truncate returned <= 0 on non-empty database")
num = d.truncate()
self.assertEqual(num, 0,
"truncate on empty DB returned nonzero (%r)" % (num,))
@@ -631,9 +631,9 @@
if db.version() >= (4, 6):
def test08_exists(self) :
self.d.put("abcde", "ABCDE")
- self.assert_(self.d.exists("abcde") == True,
+ self.assertTrue(self.d.exists("abcde") == True,
"DB->exists() returns wrong value")
- self.assert_(self.d.exists("x") == False,
+ self.assertTrue(self.d.exists("x") == False,
"DB->exists() returns wrong value")
#----------------------------------------
@@ -806,9 +806,9 @@
self.d.put("abcde", "ABCDE", txn=txn)
txn.commit()
txn = self.env.txn_begin()
- self.assert_(self.d.exists("abcde", txn=txn) == True,
+ self.assertTrue(self.d.exists("abcde", txn=txn) == True,
"DB->exists() returns wrong value")
- self.assert_(self.d.exists("x", txn=txn) == False,
+ self.assertTrue(self.d.exists("x", txn=txn) == False,
"DB->exists() returns wrong value")
txn.abort()
@@ -823,7 +823,7 @@
d.put("abcde", "ABCDE");
txn = self.env.txn_begin()
num = d.truncate(txn)
- self.assert_(num >= 1, "truncate returned <= 0 on non-empty database")
+ self.assertTrue(num >= 1, "truncate returned <= 0 on non-empty database")
num = d.truncate(txn)
self.assertEqual(num, 0,
"truncate on empty DB returned nonzero (%r)" % (num,))
diff --git a/lib-python/2.7.0/bsddb/test/test_compare.py b/lib-python/2.7/bsddb/test/test_compare.py
rename from lib-python/2.7.0/bsddb/test/test_compare.py
rename to lib-python/2.7/bsddb/test/test_compare.py
diff --git a/lib-python/2.7.0/bsddb/test/test_compat.py b/lib-python/2.7/bsddb/test/test_compat.py
rename from lib-python/2.7.0/bsddb/test/test_compat.py
rename to lib-python/2.7/bsddb/test/test_compat.py
--- a/lib-python/2.7.0/bsddb/test/test_compat.py
+++ b/lib-python/2.7/bsddb/test/test_compat.py
@@ -119,7 +119,7 @@
if verbose:
print rec
- self.assert_(f.has_key('f'), 'Error, missing key!')
+ self.assertTrue(f.has_key('f'), 'Error, missing key!')
# test that set_location() returns the next nearest key, value
# on btree databases and raises KeyError on others.
diff --git a/lib-python/2.7.0/bsddb/test/test_cursor_pget_bug.py b/lib-python/2.7/bsddb/test/test_cursor_pget_bug.py
rename from lib-python/2.7.0/bsddb/test/test_cursor_pget_bug.py
rename to lib-python/2.7/bsddb/test/test_cursor_pget_bug.py
--- a/lib-python/2.7.0/bsddb/test/test_cursor_pget_bug.py
+++ b/lib-python/2.7/bsddb/test/test_cursor_pget_bug.py
@@ -37,12 +37,12 @@
def test_pget(self):
cursor = self.secondary_db.cursor()
- self.assertEquals(('eggs', 'salad', 'eggs'), cursor.pget(key='eggs', flags=db.DB_SET))
- self.assertEquals(('eggs', 'omelet', 'eggs'), cursor.pget(db.DB_NEXT_DUP))
- self.assertEquals(None, cursor.pget(db.DB_NEXT_DUP))
+ self.assertEqual(('eggs', 'salad', 'eggs'), cursor.pget(key='eggs', flags=db.DB_SET))
+ self.assertEqual(('eggs', 'omelet', 'eggs'), cursor.pget(db.DB_NEXT_DUP))
+ self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP))
- self.assertEquals(('ham', 'spam', 'ham'), cursor.pget('ham', 'spam', flags=db.DB_SET))
- self.assertEquals(None, cursor.pget(db.DB_NEXT_DUP))
+ self.assertEqual(('ham', 'spam', 'ham'), cursor.pget('ham', 'spam', flags=db.DB_SET))
+ self.assertEqual(None, cursor.pget(db.DB_NEXT_DUP))
cursor.close()
diff --git a/lib-python/2.7.0/bsddb/test/test_db.py b/lib-python/2.7/bsddb/test/test_db.py
rename from lib-python/2.7.0/bsddb/test/test_db.py
rename to lib-python/2.7/bsddb/test/test_db.py
diff --git a/lib-python/2.7.0/bsddb/test/test_dbenv.py b/lib-python/2.7/bsddb/test/test_dbenv.py
rename from lib-python/2.7.0/bsddb/test/test_dbenv.py
rename to lib-python/2.7/bsddb/test/test_dbenv.py
diff --git a/lib-python/2.7.0/bsddb/test/test_dbobj.py b/lib-python/2.7/bsddb/test/test_dbobj.py
rename from lib-python/2.7.0/bsddb/test/test_dbobj.py
rename to lib-python/2.7/bsddb/test/test_dbobj.py
diff --git a/lib-python/2.7.0/bsddb/test/test_dbshelve.py b/lib-python/2.7/bsddb/test/test_dbshelve.py
rename from lib-python/2.7.0/bsddb/test/test_dbshelve.py
rename to lib-python/2.7/bsddb/test/test_dbshelve.py
--- a/lib-python/2.7.0/bsddb/test/test_dbshelve.py
+++ b/lib-python/2.7/bsddb/test/test_dbshelve.py
@@ -255,7 +255,7 @@
self.assertEqual(value.L, [x] * 10)
else:
- self.assert_(0, 'Unknown key type, fix the test')
+ self.assertTrue(0, 'Unknown key type, fix the test')
#----------------------------------------------------------------------
diff --git a/lib-python/2.7.0/bsddb/test/test_dbtables.py b/lib-python/2.7/bsddb/test/test_dbtables.py
rename from lib-python/2.7.0/bsddb/test/test_dbtables.py
rename to lib-python/2.7/bsddb/test/test_dbtables.py
--- a/lib-python/2.7.0/bsddb/test/test_dbtables.py
+++ b/lib-python/2.7/bsddb/test/test_dbtables.py
@@ -18,7 +18,7 @@
#
# -- Gregory P. Smith <greg at krypto.org>
#
-# $Id: test_dbtables.py 79285 2010-03-22 14:22:26Z jesus.cea $
+# $Id$
import os, re, sys
@@ -84,8 +84,8 @@
colval = pickle.loads(values[0][colname])
else :
colval = pickle.loads(bytes(values[0][colname], "iso8859-1"))
- self.assert_(colval > 3.141)
- self.assert_(colval < 3.142)
+ self.assertTrue(colval > 3.141)
+ self.assertTrue(colval < 3.142)
def test02(self):
diff --git a/lib-python/2.7.0/bsddb/test/test_distributed_transactions.py b/lib-python/2.7/bsddb/test/test_distributed_transactions.py
rename from lib-python/2.7.0/bsddb/test/test_distributed_transactions.py
rename to lib-python/2.7/bsddb/test/test_distributed_transactions.py
--- a/lib-python/2.7.0/bsddb/test/test_distributed_transactions.py
+++ b/lib-python/2.7/bsddb/test/test_distributed_transactions.py
@@ -88,9 +88,9 @@
# Get "to be recovered" transactions but
# let them be garbage collected.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(self.num_txns,len(recovered_txns))
+ self.assertEqual(self.num_txns,len(recovered_txns))
for gid,txn in recovered_txns :
- self.assert_(gid in txns)
+ self.assertTrue(gid in txns)
del txn
del recovered_txns
@@ -99,7 +99,7 @@
# Get "to be recovered" transactions. Commit, abort and
# discard them.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(self.num_txns,len(recovered_txns))
+ self.assertEqual(self.num_txns,len(recovered_txns))
discard_txns=set()
committed_txns=set()
state=0
@@ -122,7 +122,7 @@
# Verify the discarded transactions are still
# around, and dispose them.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(len(discard_txns),len(recovered_txns))
+ self.assertEqual(len(discard_txns),len(recovered_txns))
for gid,txn in recovered_txns :
txn.abort()
del txn
@@ -133,8 +133,8 @@
# Be sure there are not pending transactions.
# Check also database size.
recovered_txns=self.dbenv.txn_recover()
- self.assert_(len(recovered_txns)==0)
- self.assertEquals(len(committed_txns),self.db.stat()["nkeys"])
+ self.assertTrue(len(recovered_txns)==0)
+ self.assertEqual(len(committed_txns),self.db.stat()["nkeys"])
class DBTxn_distributedSYNC(DBTxn_distributed):
nosync=False
diff --git a/lib-python/2.7.0/bsddb/test/test_early_close.py b/lib-python/2.7/bsddb/test/test_early_close.py
rename from lib-python/2.7.0/bsddb/test/test_early_close.py
rename to lib-python/2.7/bsddb/test/test_early_close.py
--- a/lib-python/2.7.0/bsddb/test/test_early_close.py
+++ b/lib-python/2.7/bsddb/test/test_early_close.py
@@ -162,7 +162,7 @@
txn = dbenv.txn_begin()
c1 = d.cursor(txn)
c2 = c1.dup()
- self.assertEquals(("XXX", "yyy"), c1.first())
+ self.assertEqual(("XXX", "yyy"), c1.first())
# Not interested in warnings about implicit close.
import warnings
diff --git a/lib-python/2.7.0/bsddb/test/test_fileid.py b/lib-python/2.7/bsddb/test/test_fileid.py
rename from lib-python/2.7.0/bsddb/test/test_fileid.py
rename to lib-python/2.7/bsddb/test/test_fileid.py
--- a/lib-python/2.7.0/bsddb/test/test_fileid.py
+++ b/lib-python/2.7/bsddb/test/test_fileid.py
@@ -35,11 +35,11 @@
self.db1 = db.DB(self.db_env)
self.db1.open(self.db_path_1, dbtype=db.DB_HASH, flags=db.DB_RDONLY)
- self.assertEquals(self.db1.get('spam'), 'eggs')
+ self.assertEqual(self.db1.get('spam'), 'eggs')
self.db2 = db.DB(self.db_env)
self.db2.open(self.db_path_2, dbtype=db.DB_HASH, flags=db.DB_RDONLY)
- self.assertEquals(self.db2.get('spam'), 'spam')
+ self.assertEqual(self.db2.get('spam'), 'spam')
self.db1.close()
self.db2.close()
diff --git a/lib-python/2.7.0/bsddb/test/test_get_none.py b/lib-python/2.7/bsddb/test/test_get_none.py
rename from lib-python/2.7.0/bsddb/test/test_get_none.py
rename to lib-python/2.7/bsddb/test/test_get_none.py
--- a/lib-python/2.7.0/bsddb/test/test_get_none.py
+++ b/lib-python/2.7/bsddb/test/test_get_none.py
@@ -76,7 +76,7 @@
break
self.assertNotEqual(rec, None)
- self.assert_(exceptionHappened)
+ self.assertTrue(exceptionHappened)
self.assertEqual(count, len(string.letters))
c.close()
diff --git a/lib-python/2.7.0/bsddb/test/test_join.py b/lib-python/2.7/bsddb/test/test_join.py
rename from lib-python/2.7.0/bsddb/test/test_join.py
rename to lib-python/2.7/bsddb/test/test_join.py
--- a/lib-python/2.7.0/bsddb/test/test_join.py
+++ b/lib-python/2.7/bsddb/test/test_join.py
@@ -67,7 +67,7 @@
# Don't do the .set() in an assert, or you can get a bogus failure
# when running python -O
tmp = sCursor.set('red')
- self.assert_(tmp)
+ self.assertTrue(tmp)
# FIXME: jCursor doesn't properly hold a reference to its
# cursors, if they are closed before jcursor is used it
diff --git a/lib-python/2.7.0/bsddb/test/test_lock.py b/lib-python/2.7/bsddb/test/test_lock.py
rename from lib-python/2.7.0/bsddb/test/test_lock.py
rename to lib-python/2.7/bsddb/test/test_lock.py
diff --git a/lib-python/2.7.0/bsddb/test/test_misc.py b/lib-python/2.7/bsddb/test/test_misc.py
rename from lib-python/2.7.0/bsddb/test/test_misc.py
rename to lib-python/2.7/bsddb/test/test_misc.py
--- a/lib-python/2.7.0/bsddb/test/test_misc.py
+++ b/lib-python/2.7/bsddb/test/test_misc.py
@@ -32,7 +32,7 @@
def test02_db_home(self):
env = db.DBEnv()
# check for crash fixed when db_home is used before open()
- self.assert_(env.db_home is None)
+ self.assertTrue(env.db_home is None)
env.open(self.homeDir, db.DB_CREATE)
if sys.version_info[0] < 3 :
self.assertEqual(self.homeDir, env.db_home)
@@ -43,7 +43,7 @@
db = hashopen(self.filename)
db.close()
rp = repr(db)
- self.assertEquals(rp, "{}")
+ self.assertEqual(rp, "{}")
def test04_repr_db(self) :
db = hashopen(self.filename)
@@ -54,7 +54,7 @@
db.close()
db = hashopen(self.filename)
rp = repr(db)
- self.assertEquals(rp, repr(d))
+ self.assertEqual(rp, repr(d))
db.close()
# http://sourceforge.net/tracker/index.php?func=detail&aid=1708868&group_id=13900&atid=313900
diff --git a/lib-python/2.7.0/bsddb/test/test_pickle.py b/lib-python/2.7/bsddb/test/test_pickle.py
rename from lib-python/2.7.0/bsddb/test/test_pickle.py
rename to lib-python/2.7/bsddb/test/test_pickle.py
diff --git a/lib-python/2.7.0/bsddb/test/test_queue.py b/lib-python/2.7/bsddb/test/test_queue.py
rename from lib-python/2.7.0/bsddb/test/test_queue.py
rename to lib-python/2.7/bsddb/test/test_queue.py
diff --git a/lib-python/2.7.0/bsddb/test/test_recno.py b/lib-python/2.7/bsddb/test/test_recno.py
rename from lib-python/2.7.0/bsddb/test/test_recno.py
rename to lib-python/2.7/bsddb/test/test_recno.py
--- a/lib-python/2.7.0/bsddb/test/test_recno.py
+++ b/lib-python/2.7/bsddb/test/test_recno.py
@@ -18,7 +18,7 @@
def assertFalse(self, expr, msg=None) :
return self.failIf(expr,msg=msg)
def assertTrue(self, expr, msg=None) :
- return self.assert_(expr, msg=msg)
+ return self.assertTrue(expr, msg=msg)
if (sys.version_info < (2, 7)) or ((sys.version_info >= (3, 0)) and
(sys.version_info < (3, 2))) :
diff --git a/lib-python/2.7.0/bsddb/test/test_replication.py b/lib-python/2.7/bsddb/test/test_replication.py
rename from lib-python/2.7.0/bsddb/test/test_replication.py
rename to lib-python/2.7/bsddb/test/test_replication.py
--- a/lib-python/2.7.0/bsddb/test/test_replication.py
+++ b/lib-python/2.7/bsddb/test/test_replication.py
@@ -88,23 +88,23 @@
self.dbenvMaster.rep_set_timeout(db.DB_REP_CONNECTION_RETRY,100123)
self.dbenvClient.rep_set_timeout(db.DB_REP_CONNECTION_RETRY,100321)
- self.assertEquals(self.dbenvMaster.rep_get_timeout(
+ self.assertEqual(self.dbenvMaster.rep_get_timeout(
db.DB_REP_CONNECTION_RETRY), 100123)
- self.assertEquals(self.dbenvClient.rep_get_timeout(
+ self.assertEqual(self.dbenvClient.rep_get_timeout(
db.DB_REP_CONNECTION_RETRY), 100321)
self.dbenvMaster.rep_set_timeout(db.DB_REP_ELECTION_TIMEOUT, 100234)
self.dbenvClient.rep_set_timeout(db.DB_REP_ELECTION_TIMEOUT, 100432)
- self.assertEquals(self.dbenvMaster.rep_get_timeout(
+ self.assertEqual(self.dbenvMaster.rep_get_timeout(
db.DB_REP_ELECTION_TIMEOUT), 100234)
- self.assertEquals(self.dbenvClient.rep_get_timeout(
+ self.assertEqual(self.dbenvClient.rep_get_timeout(
db.DB_REP_ELECTION_TIMEOUT), 100432)
self.dbenvMaster.rep_set_timeout(db.DB_REP_ELECTION_RETRY, 100345)
self.dbenvClient.rep_set_timeout(db.DB_REP_ELECTION_RETRY, 100543)
- self.assertEquals(self.dbenvMaster.rep_get_timeout(
+ self.assertEqual(self.dbenvMaster.rep_get_timeout(
db.DB_REP_ELECTION_RETRY), 100345)
- self.assertEquals(self.dbenvClient.rep_get_timeout(
+ self.assertEqual(self.dbenvClient.rep_get_timeout(
db.DB_REP_ELECTION_RETRY), 100543)
self.dbenvMaster.repmgr_set_ack_policy(db.DB_REPMGR_ACKS_ALL)
@@ -113,13 +113,13 @@
self.dbenvMaster.repmgr_start(1, db.DB_REP_MASTER);
self.dbenvClient.repmgr_start(1, db.DB_REP_CLIENT);
- self.assertEquals(self.dbenvMaster.rep_get_nsites(),2)
- self.assertEquals(self.dbenvClient.rep_get_nsites(),2)
- self.assertEquals(self.dbenvMaster.rep_get_priority(),10)
- self.assertEquals(self.dbenvClient.rep_get_priority(),0)
- self.assertEquals(self.dbenvMaster.repmgr_get_ack_policy(),
+ self.assertEqual(self.dbenvMaster.rep_get_nsites(),2)
+ self.assertEqual(self.dbenvClient.rep_get_nsites(),2)
+ self.assertEqual(self.dbenvMaster.rep_get_priority(),10)
+ self.assertEqual(self.dbenvClient.rep_get_priority(),0)
+ self.assertEqual(self.dbenvMaster.repmgr_get_ack_policy(),
db.DB_REPMGR_ACKS_ALL)
- self.assertEquals(self.dbenvClient.repmgr_get_ack_policy(),
+ self.assertEqual(self.dbenvClient.repmgr_get_ack_policy(),
db.DB_REPMGR_ACKS_ALL)
# The timeout is necessary in BDB 4.5, since DB_EVENT_REP_STARTUPDONE
@@ -143,16 +143,16 @@
startup_timeout = True
d = self.dbenvMaster.repmgr_site_list()
- self.assertEquals(len(d), 1)
- self.assertEquals(d[0][0], "127.0.0.1")
- self.assertEquals(d[0][1], client_port)
+ self.assertEqual(len(d), 1)
+ self.assertEqual(d[0][0], "127.0.0.1")
+ self.assertEqual(d[0][1], client_port)
self.assertTrue((d[0][2]==db.DB_REPMGR_CONNECTED) or \
(d[0][2]==db.DB_REPMGR_DISCONNECTED))
d = self.dbenvClient.repmgr_site_list()
- self.assertEquals(len(d), 1)
- self.assertEquals(d[0][0], "127.0.0.1")
- self.assertEquals(d[0][1], master_port)
+ self.assertEqual(len(d), 1)
+ self.assertEqual(d[0][0], "127.0.0.1")
+ self.assertEqual(d[0][1], master_port)
self.assertTrue((d[0][2]==db.DB_REPMGR_CONNECTED) or \
(d[0][2]==db.DB_REPMGR_DISCONNECTED))
@@ -207,7 +207,7 @@
self.skipTest("replication test skipped due to random failure, "
"see issue 3892")
self.assertTrue(time.time()<timeout)
- self.assertEquals("123", v)
+ self.assertEqual("123", v)
txn=self.dbenvMaster.txn_begin()
self.dbMaster.delete("ABC", txn=txn)
@@ -220,7 +220,7 @@
if v is None :
time.sleep(0.02)
self.assertTrue(time.time()<timeout)
- self.assertEquals(None, v)
+ self.assertEqual(None, v)
class DBBaseReplication(DBReplication) :
def setUp(self) :
@@ -253,8 +253,8 @@
self.dbenvClient.rep_set_transport(3,c2m)
self.dbenvClient.rep_set_priority(0)
- self.assertEquals(self.dbenvMaster.rep_get_priority(),10)
- self.assertEquals(self.dbenvClient.rep_get_priority(),0)
+ self.assertEqual(self.dbenvMaster.rep_get_priority(),10)
+ self.assertEqual(self.dbenvClient.rep_get_priority(),0)
#self.dbenvMaster.set_verbose(db.DB_VERB_REPLICATION, True)
#self.dbenvMaster.set_verbose(db.DB_VERB_FILEOPS_ALL, True)
@@ -384,7 +384,7 @@
if v is None :
time.sleep(0.02)
self.assertTrue(time.time()<timeout)
- self.assertEquals("123", v)
+ self.assertEqual("123", v)
txn=self.dbenvMaster.txn_begin()
self.dbMaster.delete("ABC", txn=txn)
@@ -397,7 +397,7 @@
if v is None :
time.sleep(0.02)
self.assertTrue(time.time()<timeout)
- self.assertEquals(None, v)
+ self.assertEqual(None, v)
if db.version() >= (4,7) :
def test02_test_request(self) :
diff --git a/lib-python/2.7.0/bsddb/test/test_sequence.py b/lib-python/2.7/bsddb/test/test_sequence.py
rename from lib-python/2.7.0/bsddb/test/test_sequence.py
rename to lib-python/2.7/bsddb/test/test_sequence.py
--- a/lib-python/2.7.0/bsddb/test/test_sequence.py
+++ b/lib-python/2.7/bsddb/test/test_sequence.py
@@ -37,53 +37,53 @@
self.seq = db.DBSequence(self.d, flags=0)
start_value = 10 * self.int_32_max
self.assertEqual(0xA00000000, start_value)
- self.assertEquals(None, self.seq.initial_value(start_value))
- self.assertEquals(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE))
- self.assertEquals(start_value, self.seq.get(5))
- self.assertEquals(start_value + 5, self.seq.get())
+ self.assertEqual(None, self.seq.initial_value(start_value))
+ self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(start_value, self.seq.get(5))
+ self.assertEqual(start_value + 5, self.seq.get())
def test_remove(self):
self.seq = db.DBSequence(self.d, flags=0)
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
- self.assertEquals(None, self.seq.remove(txn=None, flags=0))
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(None, self.seq.remove(txn=None, flags=0))
del self.seq
def test_get_key(self):
self.seq = db.DBSequence(self.d, flags=0)
key = 'foo'
- self.assertEquals(None, self.seq.open(key=key, txn=None, flags=db.DB_CREATE))
- self.assertEquals(key, self.seq.get_key())
+ self.assertEqual(None, self.seq.open(key=key, txn=None, flags=db.DB_CREATE))
+ self.assertEqual(key, self.seq.get_key())
def test_get_dbp(self):
self.seq = db.DBSequence(self.d, flags=0)
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
- self.assertEquals(self.d, self.seq.get_dbp())
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(self.d, self.seq.get_dbp())
def test_cachesize(self):
self.seq = db.DBSequence(self.d, flags=0)
cashe_size = 10
- self.assertEquals(None, self.seq.set_cachesize(cashe_size))
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
- self.assertEquals(cashe_size, self.seq.get_cachesize())
+ self.assertEqual(None, self.seq.set_cachesize(cashe_size))
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(cashe_size, self.seq.get_cachesize())
def test_flags(self):
self.seq = db.DBSequence(self.d, flags=0)
flag = db.DB_SEQ_WRAP;
- self.assertEquals(None, self.seq.set_flags(flag))
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
- self.assertEquals(flag, self.seq.get_flags() & flag)
+ self.assertEqual(None, self.seq.set_flags(flag))
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(flag, self.seq.get_flags() & flag)
def test_range(self):
self.seq = db.DBSequence(self.d, flags=0)
seq_range = (10 * self.int_32_max, 11 * self.int_32_max - 1)
- self.assertEquals(None, self.seq.set_range(seq_range))
+ self.assertEqual(None, self.seq.set_range(seq_range))
self.seq.initial_value(seq_range[0])
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
- self.assertEquals(seq_range, self.seq.get_range())
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(seq_range, self.seq.get_range())
def test_stat(self):
self.seq = db.DBSequence(self.d, flags=0)
- self.assertEquals(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
+ self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
stat = self.seq.stat()
for param in ('nowait', 'min', 'max', 'value', 'current',
'flags', 'cache_size', 'last_value', 'wait'):
@@ -106,24 +106,24 @@
def test_64bits(self) :
# We don't use both extremes because they are problematic
value_plus=(1L<<63)-2
- self.assertEquals(9223372036854775806L,value_plus)
+ self.assertEqual(9223372036854775806L,value_plus)
value_minus=(-1L<<63)+1 # Two complement
- self.assertEquals(-9223372036854775807L,value_minus)
+ self.assertEqual(-9223372036854775807L,value_minus)
self.seq = db.DBSequence(self.d, flags=0)
- self.assertEquals(None, self.seq.initial_value(value_plus-1))
- self.assertEquals(None, self.seq.open(key='id', txn=None,
+ self.assertEqual(None, self.seq.initial_value(value_plus-1))
+ self.assertEqual(None, self.seq.open(key='id', txn=None,
flags=db.DB_CREATE))
- self.assertEquals(value_plus-1, self.seq.get(1))
- self.assertEquals(value_plus, self.seq.get(1))
+ self.assertEqual(value_plus-1, self.seq.get(1))
+ self.assertEqual(value_plus, self.seq.get(1))
self.seq.remove(txn=None, flags=0)
self.seq = db.DBSequence(self.d, flags=0)
- self.assertEquals(None, self.seq.initial_value(value_minus))
- self.assertEquals(None, self.seq.open(key='id', txn=None,
+ self.assertEqual(None, self.seq.initial_value(value_minus))
+ self.assertEqual(None, self.seq.open(key='id', txn=None,
flags=db.DB_CREATE))
- self.assertEquals(value_minus, self.seq.get(1))
- self.assertEquals(value_minus+1, self.seq.get(1))
+ self.assertEqual(value_minus, self.seq.get(1))
+ self.assertEqual(value_minus+1, self.seq.get(1))
def test_multiple_close(self):
self.seq = db.DBSequence(self.d)
diff --git a/lib-python/2.7.0/bsddb/test/test_thread.py b/lib-python/2.7/bsddb/test/test_thread.py
rename from lib-python/2.7.0/bsddb/test/test_thread.py
rename to lib-python/2.7/bsddb/test/test_thread.py
diff --git a/lib-python/2.7.0/cProfile.py b/lib-python/2.7/cProfile.py
rename from lib-python/2.7.0/cProfile.py
rename to lib-python/2.7/cProfile.py
diff --git a/lib-python/2.7.0/calendar.py b/lib-python/2.7/calendar.py
rename from lib-python/2.7.0/calendar.py
rename to lib-python/2.7/calendar.py
--- a/lib-python/2.7.0/calendar.py
+++ b/lib-python/2.7/calendar.py
@@ -486,8 +486,8 @@
self.locale = locale
def __enter__(self):
- self.oldlocale = _locale.setlocale(_locale.LC_TIME, self.locale)
- return _locale.getlocale(_locale.LC_TIME)[1]
+ self.oldlocale = _locale.getlocale(_locale.LC_TIME)
+ _locale.setlocale(_locale.LC_TIME, self.locale)
def __exit__(self, *args):
_locale.setlocale(_locale.LC_TIME, self.oldlocale)
diff --git a/lib-python/2.7.0/cgi.py b/lib-python/2.7/cgi.py
rename from lib-python/2.7.0/cgi.py
rename to lib-python/2.7/cgi.py
diff --git a/lib-python/2.7.0/cgitb.py b/lib-python/2.7/cgitb.py
rename from lib-python/2.7.0/cgitb.py
rename to lib-python/2.7/cgitb.py
diff --git a/lib-python/2.7.0/chunk.py b/lib-python/2.7/chunk.py
rename from lib-python/2.7.0/chunk.py
rename to lib-python/2.7/chunk.py
diff --git a/lib-python/2.7.0/cmd.py b/lib-python/2.7/cmd.py
rename from lib-python/2.7.0/cmd.py
rename to lib-python/2.7/cmd.py
diff --git a/lib-python/2.7.0/code.py b/lib-python/2.7/code.py
rename from lib-python/2.7.0/code.py
rename to lib-python/2.7/code.py
diff --git a/lib-python/2.7.0/codecs.py b/lib-python/2.7/codecs.py
rename from lib-python/2.7.0/codecs.py
rename to lib-python/2.7/codecs.py
diff --git a/lib-python/2.7.0/codeop.py b/lib-python/2.7/codeop.py
rename from lib-python/2.7.0/codeop.py
rename to lib-python/2.7/codeop.py
diff --git a/lib-python/2.7.0/collections.py b/lib-python/2.7/collections.py
rename from lib-python/2.7.0/collections.py
rename to lib-python/2.7/collections.py
diff --git a/lib-python/2.7.0/colorsys.py b/lib-python/2.7/colorsys.py
rename from lib-python/2.7.0/colorsys.py
rename to lib-python/2.7/colorsys.py
diff --git a/lib-python/2.7.0/commands.py b/lib-python/2.7/commands.py
rename from lib-python/2.7.0/commands.py
rename to lib-python/2.7/commands.py
diff --git a/lib-python/2.7.0/compileall.py b/lib-python/2.7/compileall.py
rename from lib-python/2.7.0/compileall.py
rename to lib-python/2.7/compileall.py
diff --git a/lib-python/2.7.0/compiler/__init__.py b/lib-python/2.7/compiler/__init__.py
rename from lib-python/2.7.0/compiler/__init__.py
rename to lib-python/2.7/compiler/__init__.py
diff --git a/lib-python/2.7.0/compiler/ast.py b/lib-python/2.7/compiler/ast.py
rename from lib-python/2.7.0/compiler/ast.py
rename to lib-python/2.7/compiler/ast.py
diff --git a/lib-python/2.7.0/compiler/consts.py b/lib-python/2.7/compiler/consts.py
rename from lib-python/2.7.0/compiler/consts.py
rename to lib-python/2.7/compiler/consts.py
diff --git a/lib-python/2.7.0/compiler/future.py b/lib-python/2.7/compiler/future.py
rename from lib-python/2.7.0/compiler/future.py
rename to lib-python/2.7/compiler/future.py
diff --git a/lib-python/2.7.0/compiler/misc.py b/lib-python/2.7/compiler/misc.py
rename from lib-python/2.7.0/compiler/misc.py
rename to lib-python/2.7/compiler/misc.py
diff --git a/lib-python/2.7.0/compiler/pyassem.py b/lib-python/2.7/compiler/pyassem.py
rename from lib-python/2.7.0/compiler/pyassem.py
rename to lib-python/2.7/compiler/pyassem.py
diff --git a/lib-python/2.7.0/compiler/pycodegen.py b/lib-python/2.7/compiler/pycodegen.py
rename from lib-python/2.7.0/compiler/pycodegen.py
rename to lib-python/2.7/compiler/pycodegen.py
diff --git a/lib-python/2.7.0/compiler/symbols.py b/lib-python/2.7/compiler/symbols.py
rename from lib-python/2.7.0/compiler/symbols.py
rename to lib-python/2.7/compiler/symbols.py
diff --git a/lib-python/2.7.0/compiler/syntax.py b/lib-python/2.7/compiler/syntax.py
rename from lib-python/2.7.0/compiler/syntax.py
rename to lib-python/2.7/compiler/syntax.py
diff --git a/lib-python/2.7.0/compiler/transformer.py b/lib-python/2.7/compiler/transformer.py
rename from lib-python/2.7.0/compiler/transformer.py
rename to lib-python/2.7/compiler/transformer.py
diff --git a/lib-python/2.7.0/compiler/visitor.py b/lib-python/2.7/compiler/visitor.py
rename from lib-python/2.7.0/compiler/visitor.py
rename to lib-python/2.7/compiler/visitor.py
diff --git a/lib-python/2.7.0/contextlib.py b/lib-python/2.7/contextlib.py
rename from lib-python/2.7.0/contextlib.py
rename to lib-python/2.7/contextlib.py
diff --git a/lib-python/2.7.0/cookielib.py b/lib-python/2.7/cookielib.py
rename from lib-python/2.7.0/cookielib.py
rename to lib-python/2.7/cookielib.py
diff --git a/lib-python/2.7.0/copy.py b/lib-python/2.7/copy.py
rename from lib-python/2.7.0/copy.py
rename to lib-python/2.7/copy.py
diff --git a/lib-python/2.7.0/copy_reg.py b/lib-python/2.7/copy_reg.py
rename from lib-python/2.7.0/copy_reg.py
rename to lib-python/2.7/copy_reg.py
diff --git a/lib-python/2.7.0/csv.py b/lib-python/2.7/csv.py
rename from lib-python/2.7.0/csv.py
rename to lib-python/2.7/csv.py
diff --git a/lib-python/2.7.0/ctypes/__init__.py b/lib-python/2.7/ctypes/__init__.py
rename from lib-python/2.7.0/ctypes/__init__.py
rename to lib-python/2.7/ctypes/__init__.py
diff --git a/lib-python/2.7.0/ctypes/_endian.py b/lib-python/2.7/ctypes/_endian.py
rename from lib-python/2.7.0/ctypes/_endian.py
rename to lib-python/2.7/ctypes/_endian.py
diff --git a/lib-python/2.7.0/ctypes/macholib/README.ctypes b/lib-python/2.7/ctypes/macholib/README.ctypes
rename from lib-python/2.7.0/ctypes/macholib/README.ctypes
rename to lib-python/2.7/ctypes/macholib/README.ctypes
diff --git a/lib-python/2.7.0/ctypes/macholib/__init__.py b/lib-python/2.7/ctypes/macholib/__init__.py
rename from lib-python/2.7.0/ctypes/macholib/__init__.py
rename to lib-python/2.7/ctypes/macholib/__init__.py
diff --git a/lib-python/2.7.0/ctypes/macholib/dyld.py b/lib-python/2.7/ctypes/macholib/dyld.py
rename from lib-python/2.7.0/ctypes/macholib/dyld.py
rename to lib-python/2.7/ctypes/macholib/dyld.py
diff --git a/lib-python/2.7.0/ctypes/macholib/dylib.py b/lib-python/2.7/ctypes/macholib/dylib.py
rename from lib-python/2.7.0/ctypes/macholib/dylib.py
rename to lib-python/2.7/ctypes/macholib/dylib.py
diff --git a/lib-python/2.7.0/ctypes/macholib/fetch_macholib b/lib-python/2.7/ctypes/macholib/fetch_macholib
rename from lib-python/2.7.0/ctypes/macholib/fetch_macholib
rename to lib-python/2.7/ctypes/macholib/fetch_macholib
diff --git a/lib-python/2.7.0/ctypes/macholib/fetch_macholib.bat b/lib-python/2.7/ctypes/macholib/fetch_macholib.bat
rename from lib-python/2.7.0/ctypes/macholib/fetch_macholib.bat
rename to lib-python/2.7/ctypes/macholib/fetch_macholib.bat
diff --git a/lib-python/2.7.0/ctypes/macholib/framework.py b/lib-python/2.7/ctypes/macholib/framework.py
rename from lib-python/2.7.0/ctypes/macholib/framework.py
rename to lib-python/2.7/ctypes/macholib/framework.py
diff --git a/lib-python/2.7.0/ctypes/test/__init__.py b/lib-python/2.7/ctypes/test/__init__.py
rename from lib-python/2.7.0/ctypes/test/__init__.py
rename to lib-python/2.7/ctypes/test/__init__.py
diff --git a/lib-python/2.7.0/ctypes/test/runtests.py b/lib-python/2.7/ctypes/test/runtests.py
rename from lib-python/2.7.0/ctypes/test/runtests.py
rename to lib-python/2.7/ctypes/test/runtests.py
diff --git a/lib-python/2.7.0/ctypes/test/test_anon.py b/lib-python/2.7/ctypes/test/test_anon.py
rename from lib-python/2.7.0/ctypes/test/test_anon.py
rename to lib-python/2.7/ctypes/test/test_anon.py
diff --git a/lib-python/2.7.0/ctypes/test/test_array_in_pointer.py b/lib-python/2.7/ctypes/test/test_array_in_pointer.py
rename from lib-python/2.7.0/ctypes/test/test_array_in_pointer.py
rename to lib-python/2.7/ctypes/test/test_array_in_pointer.py
diff --git a/lib-python/2.7.0/ctypes/test/test_arrays.py b/lib-python/2.7/ctypes/test/test_arrays.py
rename from lib-python/2.7.0/ctypes/test/test_arrays.py
rename to lib-python/2.7/ctypes/test/test_arrays.py
diff --git a/lib-python/2.7.0/ctypes/test/test_as_parameter.py b/lib-python/2.7/ctypes/test/test_as_parameter.py
rename from lib-python/2.7.0/ctypes/test/test_as_parameter.py
rename to lib-python/2.7/ctypes/test/test_as_parameter.py
diff --git a/lib-python/2.7.0/ctypes/test/test_bitfields.py b/lib-python/2.7/ctypes/test/test_bitfields.py
rename from lib-python/2.7.0/ctypes/test/test_bitfields.py
rename to lib-python/2.7/ctypes/test/test_bitfields.py
diff --git a/lib-python/2.7.0/ctypes/test/test_buffers.py b/lib-python/2.7/ctypes/test/test_buffers.py
rename from lib-python/2.7.0/ctypes/test/test_buffers.py
rename to lib-python/2.7/ctypes/test/test_buffers.py
diff --git a/lib-python/2.7.0/ctypes/test/test_byteswap.py b/lib-python/2.7/ctypes/test/test_byteswap.py
rename from lib-python/2.7.0/ctypes/test/test_byteswap.py
rename to lib-python/2.7/ctypes/test/test_byteswap.py
diff --git a/lib-python/2.7.0/ctypes/test/test_callbacks.py b/lib-python/2.7/ctypes/test/test_callbacks.py
rename from lib-python/2.7.0/ctypes/test/test_callbacks.py
rename to lib-python/2.7/ctypes/test/test_callbacks.py
diff --git a/lib-python/2.7.0/ctypes/test/test_cast.py b/lib-python/2.7/ctypes/test/test_cast.py
rename from lib-python/2.7.0/ctypes/test/test_cast.py
rename to lib-python/2.7/ctypes/test/test_cast.py
diff --git a/lib-python/2.7.0/ctypes/test/test_cfuncs.py b/lib-python/2.7/ctypes/test/test_cfuncs.py
rename from lib-python/2.7.0/ctypes/test/test_cfuncs.py
rename to lib-python/2.7/ctypes/test/test_cfuncs.py
diff --git a/lib-python/2.7.0/ctypes/test/test_checkretval.py b/lib-python/2.7/ctypes/test/test_checkretval.py
rename from lib-python/2.7.0/ctypes/test/test_checkretval.py
rename to lib-python/2.7/ctypes/test/test_checkretval.py
diff --git a/lib-python/2.7.0/ctypes/test/test_delattr.py b/lib-python/2.7/ctypes/test/test_delattr.py
rename from lib-python/2.7.0/ctypes/test/test_delattr.py
rename to lib-python/2.7/ctypes/test/test_delattr.py
diff --git a/lib-python/2.7.0/ctypes/test/test_errcheck.py b/lib-python/2.7/ctypes/test/test_errcheck.py
rename from lib-python/2.7.0/ctypes/test/test_errcheck.py
rename to lib-python/2.7/ctypes/test/test_errcheck.py
diff --git a/lib-python/2.7.0/ctypes/test/test_errno.py b/lib-python/2.7/ctypes/test/test_errno.py
rename from lib-python/2.7.0/ctypes/test/test_errno.py
rename to lib-python/2.7/ctypes/test/test_errno.py
diff --git a/lib-python/2.7.0/ctypes/test/test_find.py b/lib-python/2.7/ctypes/test/test_find.py
rename from lib-python/2.7.0/ctypes/test/test_find.py
rename to lib-python/2.7/ctypes/test/test_find.py
diff --git a/lib-python/2.7.0/ctypes/test/test_frombuffer.py b/lib-python/2.7/ctypes/test/test_frombuffer.py
rename from lib-python/2.7.0/ctypes/test/test_frombuffer.py
rename to lib-python/2.7/ctypes/test/test_frombuffer.py
diff --git a/lib-python/2.7.0/ctypes/test/test_funcptr.py b/lib-python/2.7/ctypes/test/test_funcptr.py
rename from lib-python/2.7.0/ctypes/test/test_funcptr.py
rename to lib-python/2.7/ctypes/test/test_funcptr.py
diff --git a/lib-python/2.7.0/ctypes/test/test_functions.py b/lib-python/2.7/ctypes/test/test_functions.py
rename from lib-python/2.7.0/ctypes/test/test_functions.py
rename to lib-python/2.7/ctypes/test/test_functions.py
diff --git a/lib-python/2.7.0/ctypes/test/test_incomplete.py b/lib-python/2.7/ctypes/test/test_incomplete.py
rename from lib-python/2.7.0/ctypes/test/test_incomplete.py
rename to lib-python/2.7/ctypes/test/test_incomplete.py
diff --git a/lib-python/2.7.0/ctypes/test/test_init.py b/lib-python/2.7/ctypes/test/test_init.py
rename from lib-python/2.7.0/ctypes/test/test_init.py
rename to lib-python/2.7/ctypes/test/test_init.py
diff --git a/lib-python/2.7.0/ctypes/test/test_integers.py b/lib-python/2.7/ctypes/test/test_integers.py
rename from lib-python/2.7.0/ctypes/test/test_integers.py
rename to lib-python/2.7/ctypes/test/test_integers.py
diff --git a/lib-python/2.7.0/ctypes/test/test_internals.py b/lib-python/2.7/ctypes/test/test_internals.py
rename from lib-python/2.7.0/ctypes/test/test_internals.py
rename to lib-python/2.7/ctypes/test/test_internals.py
diff --git a/lib-python/2.7.0/ctypes/test/test_keeprefs.py b/lib-python/2.7/ctypes/test/test_keeprefs.py
rename from lib-python/2.7.0/ctypes/test/test_keeprefs.py
rename to lib-python/2.7/ctypes/test/test_keeprefs.py
--- a/lib-python/2.7.0/ctypes/test/test_keeprefs.py
+++ b/lib-python/2.7/ctypes/test/test_keeprefs.py
@@ -4,19 +4,19 @@
class SimpleTestCase(unittest.TestCase):
def test_cint(self):
x = c_int()
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x.value = 42
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x = c_int(99)
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
def test_ccharp(self):
x = c_char_p()
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x.value = "abc"
- self.assertEquals(x._objects, "abc")
+ self.assertEqual(x._objects, "abc")
x = c_char_p("spam")
- self.assertEquals(x._objects, "spam")
+ self.assertEqual(x._objects, "spam")
class StructureTestCase(unittest.TestCase):
def test_cint_struct(self):
@@ -25,21 +25,21 @@
("b", c_int)]
x = X()
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x.a = 42
x.b = 99
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
def test_ccharp_struct(self):
class X(Structure):
_fields_ = [("a", c_char_p),
("b", c_char_p)]
x = X()
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x.a = "spam"
x.b = "foo"
- self.assertEquals(x._objects, {"0": "spam", "1": "foo"})
+ self.assertEqual(x._objects, {"0": "spam", "1": "foo"})
def test_struct_struct(self):
class POINT(Structure):
@@ -52,28 +52,28 @@
r.ul.y = 1
r.lr.x = 2
r.lr.y = 3
- self.assertEquals(r._objects, None)
+ self.assertEqual(r._objects, None)
r = RECT()
pt = POINT(1, 2)
r.ul = pt
- self.assertEquals(r._objects, {'0': {}})
+ self.assertEqual(r._objects, {'0': {}})
r.ul.x = 22
r.ul.y = 44
- self.assertEquals(r._objects, {'0': {}})
+ self.assertEqual(r._objects, {'0': {}})
r.lr = POINT()
- self.assertEquals(r._objects, {'0': {}, '1': {}})
+ self.assertEqual(r._objects, {'0': {}, '1': {}})
class ArrayTestCase(unittest.TestCase):
def test_cint_array(self):
INTARR = c_int * 3
ia = INTARR()
- self.assertEquals(ia._objects, None)
+ self.assertEqual(ia._objects, None)
ia[0] = 1
ia[1] = 2
ia[2] = 3
- self.assertEquals(ia._objects, None)
+ self.assertEqual(ia._objects, None)
class X(Structure):
_fields_ = [("x", c_int),
@@ -83,9 +83,9 @@
x.x = 1000
x.a[0] = 42
x.a[1] = 96
- self.assertEquals(x._objects, None)
+ self.assertEqual(x._objects, None)
x.a = ia
- self.assertEquals(x._objects, {'1': {}})
+ self.assertEqual(x._objects, {'1': {}})
class PointerTestCase(unittest.TestCase):
def test_p_cint(self):
diff --git a/lib-python/2.7.0/ctypes/test/test_libc.py b/lib-python/2.7/ctypes/test/test_libc.py
rename from lib-python/2.7.0/ctypes/test/test_libc.py
rename to lib-python/2.7/ctypes/test/test_libc.py
diff --git a/lib-python/2.7.0/ctypes/test/test_loading.py b/lib-python/2.7/ctypes/test/test_loading.py
rename from lib-python/2.7.0/ctypes/test/test_loading.py
rename to lib-python/2.7/ctypes/test/test_loading.py
diff --git a/lib-python/2.7.0/ctypes/test/test_macholib.py b/lib-python/2.7/ctypes/test/test_macholib.py
rename from lib-python/2.7.0/ctypes/test/test_macholib.py
rename to lib-python/2.7/ctypes/test/test_macholib.py
diff --git a/lib-python/2.7.0/ctypes/test/test_memfunctions.py b/lib-python/2.7/ctypes/test/test_memfunctions.py
rename from lib-python/2.7.0/ctypes/test/test_memfunctions.py
rename to lib-python/2.7/ctypes/test/test_memfunctions.py
diff --git a/lib-python/2.7.0/ctypes/test/test_numbers.py b/lib-python/2.7/ctypes/test/test_numbers.py
rename from lib-python/2.7.0/ctypes/test/test_numbers.py
rename to lib-python/2.7/ctypes/test/test_numbers.py
diff --git a/lib-python/2.7.0/ctypes/test/test_objects.py b/lib-python/2.7/ctypes/test/test_objects.py
rename from lib-python/2.7.0/ctypes/test/test_objects.py
rename to lib-python/2.7/ctypes/test/test_objects.py
diff --git a/lib-python/2.7.0/ctypes/test/test_parameters.py b/lib-python/2.7/ctypes/test/test_parameters.py
rename from lib-python/2.7.0/ctypes/test/test_parameters.py
rename to lib-python/2.7/ctypes/test/test_parameters.py
diff --git a/lib-python/2.7.0/ctypes/test/test_pep3118.py b/lib-python/2.7/ctypes/test/test_pep3118.py
rename from lib-python/2.7.0/ctypes/test/test_pep3118.py
rename to lib-python/2.7/ctypes/test/test_pep3118.py
diff --git a/lib-python/2.7.0/ctypes/test/test_pickling.py b/lib-python/2.7/ctypes/test/test_pickling.py
rename from lib-python/2.7.0/ctypes/test/test_pickling.py
rename to lib-python/2.7/ctypes/test/test_pickling.py
diff --git a/lib-python/2.7.0/ctypes/test/test_pointers.py b/lib-python/2.7/ctypes/test/test_pointers.py
rename from lib-python/2.7.0/ctypes/test/test_pointers.py
rename to lib-python/2.7/ctypes/test/test_pointers.py
diff --git a/lib-python/2.7.0/ctypes/test/test_prototypes.py b/lib-python/2.7/ctypes/test/test_prototypes.py
rename from lib-python/2.7.0/ctypes/test/test_prototypes.py
rename to lib-python/2.7/ctypes/test/test_prototypes.py
diff --git a/lib-python/2.7.0/ctypes/test/test_python_api.py b/lib-python/2.7/ctypes/test/test_python_api.py
rename from lib-python/2.7.0/ctypes/test/test_python_api.py
rename to lib-python/2.7/ctypes/test/test_python_api.py
diff --git a/lib-python/2.7.0/ctypes/test/test_random_things.py b/lib-python/2.7/ctypes/test/test_random_things.py
rename from lib-python/2.7.0/ctypes/test/test_random_things.py
rename to lib-python/2.7/ctypes/test/test_random_things.py
diff --git a/lib-python/2.7.0/ctypes/test/test_refcounts.py b/lib-python/2.7/ctypes/test/test_refcounts.py
rename from lib-python/2.7.0/ctypes/test/test_refcounts.py
rename to lib-python/2.7/ctypes/test/test_refcounts.py
diff --git a/lib-python/2.7.0/ctypes/test/test_repr.py b/lib-python/2.7/ctypes/test/test_repr.py
rename from lib-python/2.7.0/ctypes/test/test_repr.py
rename to lib-python/2.7/ctypes/test/test_repr.py
diff --git a/lib-python/2.7.0/ctypes/test/test_returnfuncptrs.py b/lib-python/2.7/ctypes/test/test_returnfuncptrs.py
rename from lib-python/2.7.0/ctypes/test/test_returnfuncptrs.py
rename to lib-python/2.7/ctypes/test/test_returnfuncptrs.py
diff --git a/lib-python/2.7.0/ctypes/test/test_simplesubclasses.py b/lib-python/2.7/ctypes/test/test_simplesubclasses.py
rename from lib-python/2.7.0/ctypes/test/test_simplesubclasses.py
rename to lib-python/2.7/ctypes/test/test_simplesubclasses.py
diff --git a/lib-python/2.7.0/ctypes/test/test_sizes.py b/lib-python/2.7/ctypes/test/test_sizes.py
rename from lib-python/2.7.0/ctypes/test/test_sizes.py
rename to lib-python/2.7/ctypes/test/test_sizes.py
diff --git a/lib-python/2.7.0/ctypes/test/test_slicing.py b/lib-python/2.7/ctypes/test/test_slicing.py
rename from lib-python/2.7.0/ctypes/test/test_slicing.py
rename to lib-python/2.7/ctypes/test/test_slicing.py
diff --git a/lib-python/2.7.0/ctypes/test/test_stringptr.py b/lib-python/2.7/ctypes/test/test_stringptr.py
rename from lib-python/2.7.0/ctypes/test/test_stringptr.py
rename to lib-python/2.7/ctypes/test/test_stringptr.py
diff --git a/lib-python/2.7.0/ctypes/test/test_strings.py b/lib-python/2.7/ctypes/test/test_strings.py
rename from lib-python/2.7.0/ctypes/test/test_strings.py
rename to lib-python/2.7/ctypes/test/test_strings.py
diff --git a/lib-python/2.7.0/ctypes/test/test_struct_fields.py b/lib-python/2.7/ctypes/test/test_struct_fields.py
rename from lib-python/2.7.0/ctypes/test/test_struct_fields.py
rename to lib-python/2.7/ctypes/test/test_struct_fields.py
diff --git a/lib-python/2.7.0/ctypes/test/test_structures.py b/lib-python/2.7/ctypes/test/test_structures.py
rename from lib-python/2.7.0/ctypes/test/test_structures.py
rename to lib-python/2.7/ctypes/test/test_structures.py
diff --git a/lib-python/2.7.0/ctypes/test/test_unaligned_structures.py b/lib-python/2.7/ctypes/test/test_unaligned_structures.py
rename from lib-python/2.7.0/ctypes/test/test_unaligned_structures.py
rename to lib-python/2.7/ctypes/test/test_unaligned_structures.py
diff --git a/lib-python/2.7.0/ctypes/test/test_unicode.py b/lib-python/2.7/ctypes/test/test_unicode.py
rename from lib-python/2.7.0/ctypes/test/test_unicode.py
rename to lib-python/2.7/ctypes/test/test_unicode.py
diff --git a/lib-python/2.7.0/ctypes/test/test_values.py b/lib-python/2.7/ctypes/test/test_values.py
rename from lib-python/2.7.0/ctypes/test/test_values.py
rename to lib-python/2.7/ctypes/test/test_values.py
diff --git a/lib-python/2.7.0/ctypes/test/test_varsize_struct.py b/lib-python/2.7/ctypes/test/test_varsize_struct.py
rename from lib-python/2.7.0/ctypes/test/test_varsize_struct.py
rename to lib-python/2.7/ctypes/test/test_varsize_struct.py
diff --git a/lib-python/2.7.0/ctypes/test/test_win32.py b/lib-python/2.7/ctypes/test/test_win32.py
rename from lib-python/2.7.0/ctypes/test/test_win32.py
rename to lib-python/2.7/ctypes/test/test_win32.py
diff --git a/lib-python/2.7.0/ctypes/util.py b/lib-python/2.7/ctypes/util.py
rename from lib-python/2.7.0/ctypes/util.py
rename to lib-python/2.7/ctypes/util.py
diff --git a/lib-python/2.7.0/ctypes/wintypes.py b/lib-python/2.7/ctypes/wintypes.py
rename from lib-python/2.7.0/ctypes/wintypes.py
rename to lib-python/2.7/ctypes/wintypes.py
diff --git a/lib-python/2.7.0/curses/__init__.py b/lib-python/2.7/curses/__init__.py
rename from lib-python/2.7.0/curses/__init__.py
rename to lib-python/2.7/curses/__init__.py
--- a/lib-python/2.7.0/curses/__init__.py
+++ b/lib-python/2.7/curses/__init__.py
@@ -10,7 +10,7 @@
"""
-__revision__ = "$Id: __init__.py 61064 2008-02-25 16:29:58Z andrew.kuchling $"
+__revision__ = "$Id$"
from _curses import *
from curses.wrapper import wrapper
diff --git a/lib-python/2.7.0/curses/ascii.py b/lib-python/2.7/curses/ascii.py
rename from lib-python/2.7.0/curses/ascii.py
rename to lib-python/2.7/curses/ascii.py
diff --git a/lib-python/2.7.0/curses/has_key.py b/lib-python/2.7/curses/has_key.py
rename from lib-python/2.7.0/curses/has_key.py
rename to lib-python/2.7/curses/has_key.py
diff --git a/lib-python/2.7.0/curses/panel.py b/lib-python/2.7/curses/panel.py
rename from lib-python/2.7.0/curses/panel.py
rename to lib-python/2.7/curses/panel.py
--- a/lib-python/2.7.0/curses/panel.py
+++ b/lib-python/2.7/curses/panel.py
@@ -3,6 +3,6 @@
Module for using panels with curses.
"""
-__revision__ = "$Id: panel.py 36560 2004-07-18 06:16:08Z tim_one $"
+__revision__ = "$Id$"
from _curses_panel import *
diff --git a/lib-python/2.7.0/curses/textpad.py b/lib-python/2.7/curses/textpad.py
rename from lib-python/2.7.0/curses/textpad.py
rename to lib-python/2.7/curses/textpad.py
diff --git a/lib-python/2.7.0/curses/wrapper.py b/lib-python/2.7/curses/wrapper.py
rename from lib-python/2.7.0/curses/wrapper.py
rename to lib-python/2.7/curses/wrapper.py
diff --git a/lib-python/2.7.0/dbhash.py b/lib-python/2.7/dbhash.py
rename from lib-python/2.7.0/dbhash.py
rename to lib-python/2.7/dbhash.py
diff --git a/lib-python/2.7.0/decimal.py b/lib-python/2.7/decimal.py
rename from lib-python/2.7.0/decimal.py
rename to lib-python/2.7/decimal.py
diff --git a/lib-python/2.7.0/difflib.py b/lib-python/2.7/difflib.py
rename from lib-python/2.7.0/difflib.py
rename to lib-python/2.7/difflib.py
--- a/lib-python/2.7.0/difflib.py
+++ b/lib-python/2.7/difflib.py
@@ -151,7 +151,7 @@
Return an upper bound on ratio() very quickly.
"""
- def __init__(self, isjunk=None, a='', b=''):
+ def __init__(self, isjunk=None, a='', b='', autojunk=True):
"""Construct a SequenceMatcher.
Optional arg isjunk is None (the default), or a one-argument
@@ -169,6 +169,10 @@
Optional arg b is the second of two sequences to be compared. By
default, an empty string. The elements of b must be hashable. See
also .set_seqs() and .set_seq2().
+
+ Optional arg autojunk should be set to False to disable the
+ "automatic junk heuristic" that treats popular elements as junk
+ (see module documentation for more information).
"""
# Members:
@@ -207,11 +211,13 @@
# DOES NOT WORK for x in a!
# isbpopular
# for x in b, isbpopular(x) is true iff b is reasonably long
- # (at least 200 elements) and x accounts for more than 1% of
- # its elements. DOES NOT WORK for x in a!
+ # (at least 200 elements) and x accounts for more than 1 + 1% of
+ # its elements (when autojunk is enabled).
+ # DOES NOT WORK for x in a!
self.isjunk = isjunk
self.a = self.b = None
+ self.autojunk = autojunk
self.set_seqs(a, b)
def set_seqs(self, a, b):
@@ -288,7 +294,7 @@
# from starting any matching block at a junk element ...
# also creates the fast isbjunk function ...
# b2j also does not contain entries for "popular" elements, meaning
- # elements that account for more than 1% of the total elements, and
+ # elements that account for more than 1 + 1% of the total elements, and
# when the sequence is reasonably large (>= 200 elements); this can
# be viewed as an adaptive notion of semi-junk, and yields an enormous
# speedup when, e.g., comparing program files with hundreds of
@@ -309,44 +315,37 @@
# out the junk later is much cheaper than building b2j "right"
# from the start.
b = self.b
+ self.b2j = b2j = {}
+
+ for i, elt in enumerate(b):
+ indices = b2j.setdefault(elt, [])
+ indices.append(i)
+
+ # Purge junk elements
+ junk = set()
+ isjunk = self.isjunk
+ if isjunk:
+ for elt in list(b2j.keys()): # using list() since b2j is modified
+ if isjunk(elt):
+ junk.add(elt)
+ del b2j[elt]
+
+ # Purge popular elements that are not junk
+ popular = set()
n = len(b)
- self.b2j = b2j = {}
- populardict = {}
- for i, elt in enumerate(b):
- if elt in b2j:
- indices = b2j[elt]
- if n >= 200 and len(indices) * 100 > n:
- populardict[elt] = 1
- del indices[:]
- else:
- indices.append(i)
- else:
- b2j[elt] = [i]
+ if self.autojunk and n >= 200:
+ ntest = n // 100 + 1
+ for elt, idxs in list(b2j.items()):
+ if len(idxs) > ntest:
+ popular.add(elt)
+ del b2j[elt]
- # Purge leftover indices for popular elements.
- for elt in populardict:
- del b2j[elt]
-
- # Now b2j.keys() contains elements uniquely, and especially when
- # the sequence is a string, that's usually a good deal smaller
- # than len(string). The difference is the number of isjunk calls
- # saved.
- isjunk = self.isjunk
- junkdict = {}
- if isjunk:
- for d in populardict, b2j:
- for elt in d.keys():
- if isjunk(elt):
- junkdict[elt] = 1
- del d[elt]
-
- # Now for x in b, isjunk(x) == x in junkdict, but the
- # latter is much faster. Note too that while there may be a
- # lot of junk in the sequence, the number of *unique* junk
- # elements is probably small. So the memory burden of keeping
- # this dict alive is likely trivial compared to the size of b2j.
- self.isbjunk = junkdict.__contains__
- self.isbpopular = populardict.__contains__
+ # Now for x in b, isjunk(x) == x in junk, but the latter is much faster.
+ # Sicne the number of *unique* junk elements is probably small, the
+ # memory burden of keeping this set alive is likely trivial compared to
+ # the size of b2j.
+ self.isbjunk = junk.__contains__
+ self.isbpopular = popular.__contains__
def find_longest_match(self, alo, ahi, blo, bhi):
"""Find longest matching block in a[alo:ahi] and b[blo:bhi].
diff --git a/lib-python/2.7.0/dircache.py b/lib-python/2.7/dircache.py
rename from lib-python/2.7.0/dircache.py
rename to lib-python/2.7/dircache.py
diff --git a/lib-python/2.7.0/dis.py b/lib-python/2.7/dis.py
rename from lib-python/2.7.0/dis.py
rename to lib-python/2.7/dis.py
diff --git a/lib-python/2.7.0/distutils/README b/lib-python/2.7/distutils/README
rename from lib-python/2.7.0/distutils/README
rename to lib-python/2.7/distutils/README
--- a/lib-python/2.7.0/distutils/README
+++ b/lib-python/2.7/distutils/README
@@ -10,4 +10,4 @@
WARNING : Distutils must remain compatible with 2.3
-$Id: README 70017 2009-02-27 12:53:34Z tarek.ziade $
+$Id$
diff --git a/lib-python/2.7.0/distutils/__init__.py b/lib-python/2.7/distutils/__init__.py
rename from lib-python/2.7.0/distutils/__init__.py
rename to lib-python/2.7/distutils/__init__.py
--- a/lib-python/2.7.0/distutils/__init__.py
+++ b/lib-python/2.7/distutils/__init__.py
@@ -8,12 +8,12 @@
setup (...)
"""
-__revision__ = "$Id: __init__.py 82506 2010-07-03 14:51:25Z benjamin.peterson $"
+__revision__ = "$Id$"
# Distutils version
#
# Updated automatically by the Python release process.
#
#--start constants--
-__version__ = "2.7.1a0"
+__version__ = "2.7.1"
#--end constants--
diff --git a/lib-python/2.7.0/distutils/archive_util.py b/lib-python/2.7/distutils/archive_util.py
rename from lib-python/2.7.0/distutils/archive_util.py
rename to lib-python/2.7/distutils/archive_util.py
--- a/lib-python/2.7.0/distutils/archive_util.py
+++ b/lib-python/2.7/distutils/archive_util.py
@@ -3,7 +3,7 @@
Utility functions for creating archive files (tarballs, zip files,
that sort of thing)."""
-__revision__ = "$Id: archive_util.py 75659 2009-10-24 13:29:44Z tarek.ziade $"
+__revision__ = "$Id$"
import os
from warnings import warn
diff --git a/lib-python/2.7.0/distutils/bcppcompiler.py b/lib-python/2.7/distutils/bcppcompiler.py
rename from lib-python/2.7.0/distutils/bcppcompiler.py
rename to lib-python/2.7/distutils/bcppcompiler.py
--- a/lib-python/2.7.0/distutils/bcppcompiler.py
+++ b/lib-python/2.7/distutils/bcppcompiler.py
@@ -11,7 +11,7 @@
# someone should sit down and factor out the common code as
# WindowsCCompiler! --GPW
-__revision__ = "$Id: bcppcompiler.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import os
diff --git a/lib-python/2.7.0/distutils/ccompiler.py b/lib-python/2.7/distutils/ccompiler.py
rename from lib-python/2.7.0/distutils/ccompiler.py
rename to lib-python/2.7/distutils/ccompiler.py
--- a/lib-python/2.7.0/distutils/ccompiler.py
+++ b/lib-python/2.7/distutils/ccompiler.py
@@ -3,7 +3,7 @@
Contains CCompiler, an abstract base class that defines the interface
for the Distutils compiler abstraction model."""
-__revision__ = "$Id: ccompiler.py 77704 2010-01-23 09:23:15Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import os
@@ -794,14 +794,16 @@
library_dirs = []
fd, fname = tempfile.mkstemp(".c", funcname, text=True)
f = os.fdopen(fd, "w")
- for incl in includes:
- f.write("""#include "%s"\n""" % incl)
- f.write("""\
+ try:
+ for incl in includes:
+ f.write("""#include "%s"\n""" % incl)
+ f.write("""\
main (int argc, char **argv) {
%s();
}
""" % funcname)
- f.close()
+ finally:
+ f.close()
try:
objects = self.compile([fname], include_dirs=include_dirs)
except CompileError:
diff --git a/lib-python/2.7.0/distutils/cmd.py b/lib-python/2.7/distutils/cmd.py
rename from lib-python/2.7.0/distutils/cmd.py
rename to lib-python/2.7/distutils/cmd.py
--- a/lib-python/2.7.0/distutils/cmd.py
+++ b/lib-python/2.7/distutils/cmd.py
@@ -4,7 +4,7 @@
in the distutils.command package.
"""
-__revision__ = "$Id: cmd.py 75192 2009-10-02 23:49:48Z tarek.ziade $"
+__revision__ = "$Id$"
import sys, os, re
from distutils.errors import DistutilsOptionError
diff --git a/lib-python/2.7.0/distutils/command/__init__.py b/lib-python/2.7/distutils/command/__init__.py
rename from lib-python/2.7.0/distutils/command/__init__.py
rename to lib-python/2.7/distutils/command/__init__.py
--- a/lib-python/2.7.0/distutils/command/__init__.py
+++ b/lib-python/2.7/distutils/command/__init__.py
@@ -3,7 +3,7 @@
Package containing implementation of all the standard Distutils
commands."""
-__revision__ = "$Id: __init__.py 71473 2009-04-11 14:55:07Z tarek.ziade $"
+__revision__ = "$Id$"
__all__ = ['build',
'build_py',
diff --git a/lib-python/2.7.0/distutils/command/bdist.py b/lib-python/2.7/distutils/command/bdist.py
rename from lib-python/2.7.0/distutils/command/bdist.py
rename to lib-python/2.7/distutils/command/bdist.py
--- a/lib-python/2.7.0/distutils/command/bdist.py
+++ b/lib-python/2.7/distutils/command/bdist.py
@@ -3,7 +3,7 @@
Implements the Distutils 'bdist' command (create a built [binary]
distribution)."""
-__revision__ = "$Id: bdist.py 77761 2010-01-26 22:46:15Z tarek.ziade $"
+__revision__ = "$Id$"
import os
diff --git a/lib-python/2.7.0/distutils/command/bdist_dumb.py b/lib-python/2.7/distutils/command/bdist_dumb.py
rename from lib-python/2.7.0/distutils/command/bdist_dumb.py
rename to lib-python/2.7/distutils/command/bdist_dumb.py
--- a/lib-python/2.7.0/distutils/command/bdist_dumb.py
+++ b/lib-python/2.7/distutils/command/bdist_dumb.py
@@ -4,7 +4,7 @@
distribution -- i.e., just an archive to be unpacked under $prefix or
$exec_prefix)."""
-__revision__ = "$Id: bdist_dumb.py 77761 2010-01-26 22:46:15Z tarek.ziade $"
+__revision__ = "$Id$"
import os
diff --git a/lib-python/2.7.0/distutils/command/bdist_msi.py b/lib-python/2.7/distutils/command/bdist_msi.py
rename from lib-python/2.7.0/distutils/command/bdist_msi.py
rename to lib-python/2.7/distutils/command/bdist_msi.py
diff --git a/lib-python/2.7.0/distutils/command/bdist_rpm.py b/lib-python/2.7/distutils/command/bdist_rpm.py
rename from lib-python/2.7.0/distutils/command/bdist_rpm.py
rename to lib-python/2.7/distutils/command/bdist_rpm.py
--- a/lib-python/2.7.0/distutils/command/bdist_rpm.py
+++ b/lib-python/2.7/distutils/command/bdist_rpm.py
@@ -3,7 +3,7 @@
Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions)."""
-__revision__ = "$Id: bdist_rpm.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import os
@@ -355,22 +355,26 @@
src_rpm, non_src_rpm, spec_path)
out = os.popen(q_cmd)
- binary_rpms = []
- source_rpm = None
- while 1:
- line = out.readline()
- if not line:
- break
- l = string.split(string.strip(line))
- assert(len(l) == 2)
- binary_rpms.append(l[1])
- # The source rpm is named after the first entry in the spec file
- if source_rpm is None:
- source_rpm = l[0]
+ try:
+ binary_rpms = []
+ source_rpm = None
+ while 1:
+ line = out.readline()
+ if not line:
+ break
+ l = string.split(string.strip(line))
+ assert(len(l) == 2)
+ binary_rpms.append(l[1])
+ # The source rpm is named after the first entry in the spec file
+ if source_rpm is None:
+ source_rpm = l[0]
- status = out.close()
- if status:
- raise DistutilsExecError("Failed to execute: %s" % repr(q_cmd))
+ status = out.close()
+ if status:
+ raise DistutilsExecError("Failed to execute: %s" % repr(q_cmd))
+
+ finally:
+ out.close()
self.spawn(rpm_cmd)
diff --git a/lib-python/2.7.0/distutils/command/bdist_wininst.py b/lib-python/2.7/distutils/command/bdist_wininst.py
rename from lib-python/2.7.0/distutils/command/bdist_wininst.py
rename to lib-python/2.7/distutils/command/bdist_wininst.py
--- a/lib-python/2.7.0/distutils/command/bdist_wininst.py
+++ b/lib-python/2.7/distutils/command/bdist_wininst.py
@@ -3,7 +3,7 @@
Implements the Distutils 'bdist_wininst' command: create a windows installer
exe-program."""
-__revision__ = "$Id: bdist_wininst.py 83593 2010-08-02 21:44:25Z georg.brandl $"
+__revision__ = "$Id$"
import sys
import os
@@ -356,5 +356,9 @@
sfix = ''
filename = os.path.join(directory, "wininst-%.1f%s.exe" % (bv, sfix))
- return open(filename, "rb").read()
+ f = open(filename, "rb")
+ try:
+ return f.read()
+ finally:
+ f.close()
# class bdist_wininst
diff --git a/lib-python/2.7.0/distutils/command/build.py b/lib-python/2.7/distutils/command/build.py
rename from lib-python/2.7.0/distutils/command/build.py
rename to lib-python/2.7/distutils/command/build.py
--- a/lib-python/2.7.0/distutils/command/build.py
+++ b/lib-python/2.7/distutils/command/build.py
@@ -2,7 +2,7 @@
Implements the Distutils 'build' command."""
-__revision__ = "$Id: build.py 77761 2010-01-26 22:46:15Z tarek.ziade $"
+__revision__ = "$Id$"
import sys, os
diff --git a/lib-python/2.7.0/distutils/command/build_clib.py b/lib-python/2.7/distutils/command/build_clib.py
rename from lib-python/2.7.0/distutils/command/build_clib.py
rename to lib-python/2.7/distutils/command/build_clib.py
--- a/lib-python/2.7.0/distutils/command/build_clib.py
+++ b/lib-python/2.7/distutils/command/build_clib.py
@@ -4,7 +4,7 @@
that is included in the module distribution and needed by an extension
module."""
-__revision__ = "$Id: build_clib.py 84610 2010-09-07 22:18:34Z eric.araujo $"
+__revision__ = "$Id$"
# XXX this module has *lots* of code ripped-off quite transparently from
diff --git a/lib-python/2.7.0/distutils/command/build_ext.py b/lib-python/2.7/distutils/command/build_ext.py
rename from lib-python/2.7.0/distutils/command/build_ext.py
rename to lib-python/2.7/distutils/command/build_ext.py
--- a/lib-python/2.7.0/distutils/command/build_ext.py
+++ b/lib-python/2.7/distutils/command/build_ext.py
@@ -6,7 +6,7 @@
# This module should be kept compatible with Python 2.1.
-__revision__ = "$Id: build_ext.py 84683 2010-09-10 20:03:17Z antoine.pitrou $"
+__revision__ = "$Id$"
import sys, os, string, re
from types import *
diff --git a/lib-python/2.7.0/distutils/command/build_py.py b/lib-python/2.7/distutils/command/build_py.py
rename from lib-python/2.7.0/distutils/command/build_py.py
rename to lib-python/2.7/distutils/command/build_py.py
--- a/lib-python/2.7.0/distutils/command/build_py.py
+++ b/lib-python/2.7/distutils/command/build_py.py
@@ -2,7 +2,7 @@
Implements the Distutils 'build_py' command."""
-__revision__ = "$Id: build_py.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import os
import sys
diff --git a/lib-python/2.7.0/distutils/command/build_scripts.py b/lib-python/2.7/distutils/command/build_scripts.py
rename from lib-python/2.7.0/distutils/command/build_scripts.py
rename to lib-python/2.7/distutils/command/build_scripts.py
--- a/lib-python/2.7.0/distutils/command/build_scripts.py
+++ b/lib-python/2.7/distutils/command/build_scripts.py
@@ -2,7 +2,7 @@
Implements the Distutils 'build_scripts' command."""
-__revision__ = "$Id: build_scripts.py 77704 2010-01-23 09:23:15Z tarek.ziade $"
+__revision__ = "$Id$"
import os, re
from stat import ST_MODE
diff --git a/lib-python/2.7.0/distutils/command/check.py b/lib-python/2.7/distutils/command/check.py
rename from lib-python/2.7.0/distutils/command/check.py
rename to lib-python/2.7/distutils/command/check.py
--- a/lib-python/2.7.0/distutils/command/check.py
+++ b/lib-python/2.7/distutils/command/check.py
@@ -2,7 +2,7 @@
Implements the Distutils 'check' command.
"""
-__revision__ = "$Id: check.py 75266 2009-10-05 22:32:48Z andrew.kuchling $"
+__revision__ = "$Id$"
from distutils.core import Command
from distutils.errors import DistutilsSetupError
diff --git a/lib-python/2.7.0/distutils/command/clean.py b/lib-python/2.7/distutils/command/clean.py
rename from lib-python/2.7.0/distutils/command/clean.py
rename to lib-python/2.7/distutils/command/clean.py
--- a/lib-python/2.7.0/distutils/command/clean.py
+++ b/lib-python/2.7/distutils/command/clean.py
@@ -4,7 +4,7 @@
# contributed by Bastian Kleineidam <calvin at cs.uni-sb.de>, added 2000-03-18
-__revision__ = "$Id: clean.py 70886 2009-03-31 20:50:59Z tarek.ziade $"
+__revision__ = "$Id$"
import os
from distutils.core import Command
diff --git a/lib-python/2.7.0/distutils/command/command_template b/lib-python/2.7/distutils/command/command_template
rename from lib-python/2.7.0/distutils/command/command_template
rename to lib-python/2.7/distutils/command/command_template
diff --git a/lib-python/2.7.0/distutils/command/config.py b/lib-python/2.7/distutils/command/config.py
rename from lib-python/2.7.0/distutils/command/config.py
rename to lib-python/2.7/distutils/command/config.py
--- a/lib-python/2.7.0/distutils/command/config.py
+++ b/lib-python/2.7/distutils/command/config.py
@@ -9,7 +9,7 @@
this header file lives".
"""
-__revision__ = "$Id: config.py 77704 2010-01-23 09:23:15Z tarek.ziade $"
+__revision__ = "$Id$"
import os
import re
diff --git a/lib-python/2.7.0/distutils/command/install.py b/lib-python/2.7/distutils/command/install.py
rename from lib-python/2.7.0/distutils/command/install.py
rename to lib-python/2.7/distutils/command/install.py
--- a/lib-python/2.7.0/distutils/command/install.py
+++ b/lib-python/2.7/distutils/command/install.py
@@ -6,7 +6,7 @@
# This module should be kept compatible with Python 2.1.
-__revision__ = "$Id: install.py 80804 2010-05-05 19:09:31Z ronald.oussoren $"
+__revision__ = "$Id$"
import sys, os, string
from types import *
diff --git a/lib-python/2.7.0/distutils/command/install_data.py b/lib-python/2.7/distutils/command/install_data.py
rename from lib-python/2.7.0/distutils/command/install_data.py
rename to lib-python/2.7/distutils/command/install_data.py
--- a/lib-python/2.7.0/distutils/command/install_data.py
+++ b/lib-python/2.7/distutils/command/install_data.py
@@ -5,7 +5,7 @@
# contributed by Bastian Kleineidam
-__revision__ = "$Id: install_data.py 76849 2009-12-15 06:29:19Z tarek.ziade $"
+__revision__ = "$Id$"
import os
from distutils.core import Command
diff --git a/lib-python/2.7.0/distutils/command/install_egg_info.py b/lib-python/2.7/distutils/command/install_egg_info.py
rename from lib-python/2.7.0/distutils/command/install_egg_info.py
rename to lib-python/2.7/distutils/command/install_egg_info.py
diff --git a/lib-python/2.7.0/distutils/command/install_headers.py b/lib-python/2.7/distutils/command/install_headers.py
rename from lib-python/2.7.0/distutils/command/install_headers.py
rename to lib-python/2.7/distutils/command/install_headers.py
--- a/lib-python/2.7.0/distutils/command/install_headers.py
+++ b/lib-python/2.7/distutils/command/install_headers.py
@@ -3,7 +3,7 @@
Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory."""
-__revision__ = "$Id: install_headers.py 70891 2009-03-31 20:55:21Z tarek.ziade $"
+__revision__ = "$Id$"
from distutils.core import Command
diff --git a/lib-python/2.7.0/distutils/command/install_lib.py b/lib-python/2.7/distutils/command/install_lib.py
rename from lib-python/2.7.0/distutils/command/install_lib.py
rename to lib-python/2.7/distutils/command/install_lib.py
--- a/lib-python/2.7.0/distutils/command/install_lib.py
+++ b/lib-python/2.7/distutils/command/install_lib.py
@@ -3,7 +3,7 @@
Implements the Distutils 'install_lib' command
(install all Python modules)."""
-__revision__ = "$Id: install_lib.py 75671 2009-10-24 15:51:30Z tarek.ziade $"
+__revision__ = "$Id$"
import os
import sys
diff --git a/lib-python/2.7.0/distutils/command/install_scripts.py b/lib-python/2.7/distutils/command/install_scripts.py
rename from lib-python/2.7.0/distutils/command/install_scripts.py
rename to lib-python/2.7/distutils/command/install_scripts.py
--- a/lib-python/2.7.0/distutils/command/install_scripts.py
+++ b/lib-python/2.7/distutils/command/install_scripts.py
@@ -5,7 +5,7 @@
# contributed by Bastian Kleineidam
-__revision__ = "$Id: install_scripts.py 68943 2009-01-25 22:09:10Z tarek.ziade $"
+__revision__ = "$Id$"
import os
from distutils.core import Command
diff --git a/lib-python/2.7.0/distutils/command/register.py b/lib-python/2.7/distutils/command/register.py
rename from lib-python/2.7.0/distutils/command/register.py
rename to lib-python/2.7/distutils/command/register.py
--- a/lib-python/2.7.0/distutils/command/register.py
+++ b/lib-python/2.7/distutils/command/register.py
@@ -5,7 +5,7 @@
# created 2002/10/21, Richard Jones
-__revision__ = "$Id: register.py 77717 2010-01-24 00:33:32Z tarek.ziade $"
+__revision__ = "$Id$"
import urllib2
import getpass
diff --git a/lib-python/2.7.0/distutils/command/sdist.py b/lib-python/2.7/distutils/command/sdist.py
rename from lib-python/2.7.0/distutils/command/sdist.py
rename to lib-python/2.7/distutils/command/sdist.py
--- a/lib-python/2.7.0/distutils/command/sdist.py
+++ b/lib-python/2.7/distutils/command/sdist.py
@@ -2,7 +2,7 @@
Implements the Distutils 'sdist' command (create a source distribution)."""
-__revision__ = "$Id: sdist.py 84713 2010-09-11 15:31:13Z eric.araujo $"
+__revision__ = "$Id$"
import os
import string
diff --git a/lib-python/2.7.0/distutils/command/upload.py b/lib-python/2.7/distutils/command/upload.py
rename from lib-python/2.7.0/distutils/command/upload.py
rename to lib-python/2.7/distutils/command/upload.py
--- a/lib-python/2.7.0/distutils/command/upload.py
+++ b/lib-python/2.7/distutils/command/upload.py
@@ -79,7 +79,11 @@
# Fill in the data - send all the meta-data in case we need to
# register a new release
- content = open(filename,'rb').read()
+ f = open(filename,'rb')
+ try:
+ content = f.read()
+ finally:
+ f.close()
meta = self.distribution.metadata
data = {
# action
diff --git a/lib-python/2.7.0/distutils/command/wininst-6.0.exe b/lib-python/2.7/distutils/command/wininst-6.0.exe
rename from lib-python/2.7.0/distutils/command/wininst-6.0.exe
rename to lib-python/2.7/distutils/command/wininst-6.0.exe
diff --git a/lib-python/2.7.0/distutils/command/wininst-7.1.exe b/lib-python/2.7/distutils/command/wininst-7.1.exe
rename from lib-python/2.7.0/distutils/command/wininst-7.1.exe
rename to lib-python/2.7/distutils/command/wininst-7.1.exe
diff --git a/lib-python/2.7.0/distutils/command/wininst-8.0.exe b/lib-python/2.7/distutils/command/wininst-8.0.exe
rename from lib-python/2.7.0/distutils/command/wininst-8.0.exe
rename to lib-python/2.7/distutils/command/wininst-8.0.exe
diff --git a/lib-python/2.7.0/distutils/command/wininst-9.0-amd64.exe b/lib-python/2.7/distutils/command/wininst-9.0-amd64.exe
rename from lib-python/2.7.0/distutils/command/wininst-9.0-amd64.exe
rename to lib-python/2.7/distutils/command/wininst-9.0-amd64.exe
diff --git a/lib-python/2.7.0/distutils/command/wininst-9.0.exe b/lib-python/2.7/distutils/command/wininst-9.0.exe
rename from lib-python/2.7.0/distutils/command/wininst-9.0.exe
rename to lib-python/2.7/distutils/command/wininst-9.0.exe
diff --git a/lib-python/2.7.0/distutils/config.py b/lib-python/2.7/distutils/config.py
rename from lib-python/2.7.0/distutils/config.py
rename to lib-python/2.7/distutils/config.py
diff --git a/lib-python/2.7.0/distutils/core.py b/lib-python/2.7/distutils/core.py
rename from lib-python/2.7.0/distutils/core.py
rename to lib-python/2.7/distutils/core.py
--- a/lib-python/2.7.0/distutils/core.py
+++ b/lib-python/2.7/distutils/core.py
@@ -6,7 +6,7 @@
really defined in distutils.dist and distutils.cmd.
"""
-__revision__ = "$Id: core.py 77704 2010-01-23 09:23:15Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import os
@@ -216,7 +216,11 @@
sys.argv[0] = script_name
if script_args is not None:
sys.argv[1:] = script_args
- exec open(script_name, 'r').read() in g, l
+ f = open(script_name)
+ try:
+ exec f.read() in g, l
+ finally:
+ f.close()
finally:
sys.argv = save_argv
_setup_stop_after = None
diff --git a/lib-python/2.7.0/distutils/cygwinccompiler.py b/lib-python/2.7/distutils/cygwinccompiler.py
rename from lib-python/2.7.0/distutils/cygwinccompiler.py
rename to lib-python/2.7/distutils/cygwinccompiler.py
--- a/lib-python/2.7.0/distutils/cygwinccompiler.py
+++ b/lib-python/2.7/distutils/cygwinccompiler.py
@@ -47,7 +47,7 @@
# This module should be kept compatible with Python 2.1.
-__revision__ = "$Id: cygwinccompiler.py 78666 2010-03-05 00:16:02Z tarek.ziade $"
+__revision__ = "$Id$"
import os,sys,copy
from distutils.ccompiler import gen_preprocess_options, gen_lib_options
@@ -382,8 +382,10 @@
# It would probably better to read single lines to search.
# But we do this only once, and it is fast enough
f = open(fn)
- s = f.read()
- f.close()
+ try:
+ s = f.read()
+ finally:
+ f.close()
except IOError, exc:
# if we can't read this file, we cannot say it is wrong
diff --git a/lib-python/2.7.0/distutils/debug.py b/lib-python/2.7/distutils/debug.py
rename from lib-python/2.7.0/distutils/debug.py
rename to lib-python/2.7/distutils/debug.py
--- a/lib-python/2.7.0/distutils/debug.py
+++ b/lib-python/2.7/distutils/debug.py
@@ -1,6 +1,6 @@
import os
-__revision__ = "$Id: debug.py 68943 2009-01-25 22:09:10Z tarek.ziade $"
+__revision__ = "$Id$"
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
diff --git a/lib-python/2.7.0/distutils/dep_util.py b/lib-python/2.7/distutils/dep_util.py
rename from lib-python/2.7.0/distutils/dep_util.py
rename to lib-python/2.7/distutils/dep_util.py
--- a/lib-python/2.7.0/distutils/dep_util.py
+++ b/lib-python/2.7/distutils/dep_util.py
@@ -4,7 +4,7 @@
and groups of files; also, function based entirely on such
timestamp dependency analysis."""
-__revision__ = "$Id: dep_util.py 76746 2009-12-10 15:29:03Z tarek.ziade $"
+__revision__ = "$Id$"
import os
from distutils.errors import DistutilsFileError
diff --git a/lib-python/2.7.0/distutils/dir_util.py b/lib-python/2.7/distutils/dir_util.py
rename from lib-python/2.7.0/distutils/dir_util.py
rename to lib-python/2.7/distutils/dir_util.py
--- a/lib-python/2.7.0/distutils/dir_util.py
+++ b/lib-python/2.7/distutils/dir_util.py
@@ -2,9 +2,10 @@
Utility functions for manipulating directories and directory trees."""
-__revision__ = "$Id: dir_util.py 84862 2010-09-17 16:40:01Z senthil.kumaran $"
+__revision__ = "$Id$"
import os
+import errno
from distutils.errors import DistutilsFileError, DistutilsInternalError
from distutils import log
@@ -69,10 +70,11 @@
if not dry_run:
try:
os.mkdir(head, mode)
- created_dirs.append(head)
except OSError, exc:
- raise DistutilsFileError, \
- "could not create '%s': %s" % (head, exc[-1])
+ if not (exc.errno == errno.EEXIST and os.path.isdir(head)):
+ raise DistutilsFileError(
+ "could not create '%s': %s" % (head, exc.args[-1]))
+ created_dirs.append(head)
_path_created[abs_head] = 1
return created_dirs
diff --git a/lib-python/2.7.0/distutils/dist.py b/lib-python/2.7/distutils/dist.py
rename from lib-python/2.7.0/distutils/dist.py
rename to lib-python/2.7/distutils/dist.py
--- a/lib-python/2.7.0/distutils/dist.py
+++ b/lib-python/2.7/distutils/dist.py
@@ -4,7 +4,7 @@
being built/installed/distributed.
"""
-__revision__ = "$Id: dist.py 77717 2010-01-24 00:33:32Z tarek.ziade $"
+__revision__ = "$Id$"
import sys, os, re
from email import message_from_file
@@ -1101,9 +1101,11 @@
def write_pkg_info(self, base_dir):
"""Write the PKG-INFO file into the release tree.
"""
- pkg_info = open( os.path.join(base_dir, 'PKG-INFO'), 'w')
- self.write_pkg_file(pkg_info)
- pkg_info.close()
+ pkg_info = open(os.path.join(base_dir, 'PKG-INFO'), 'w')
+ try:
+ self.write_pkg_file(pkg_info)
+ finally:
+ pkg_info.close()
def write_pkg_file(self, file):
"""Write the PKG-INFO format data to a file object.
diff --git a/lib-python/2.7.0/distutils/emxccompiler.py b/lib-python/2.7/distutils/emxccompiler.py
rename from lib-python/2.7.0/distutils/emxccompiler.py
rename to lib-python/2.7/distutils/emxccompiler.py
--- a/lib-python/2.7.0/distutils/emxccompiler.py
+++ b/lib-python/2.7/distutils/emxccompiler.py
@@ -19,7 +19,7 @@
#
# * EMX gcc 2.81/EMX 0.9d fix03
-__revision__ = "$Id: emxccompiler.py 78666 2010-03-05 00:16:02Z tarek.ziade $"
+__revision__ = "$Id$"
import os,sys,copy
from distutils.ccompiler import gen_preprocess_options, gen_lib_options
@@ -272,8 +272,10 @@
# It would probably better to read single lines to search.
# But we do this only once, and it is fast enough
f = open(fn)
- s = f.read()
- f.close()
+ try:
+ s = f.read()
+ finally:
+ f.close()
except IOError, exc:
# if we can't read this file, we cannot say it is wrong
@@ -300,8 +302,10 @@
gcc_exe = find_executable('gcc')
if gcc_exe:
out = os.popen(gcc_exe + ' -dumpversion','r')
- out_string = out.read()
- out.close()
+ try:
+ out_string = out.read()
+ finally:
+ out.close()
result = re.search('(\d+\.\d+\.\d+)',out_string)
if result:
gcc_version = StrictVersion(result.group(1))
diff --git a/lib-python/2.7.0/distutils/errors.py b/lib-python/2.7/distutils/errors.py
rename from lib-python/2.7.0/distutils/errors.py
rename to lib-python/2.7/distutils/errors.py
--- a/lib-python/2.7.0/distutils/errors.py
+++ b/lib-python/2.7/distutils/errors.py
@@ -8,7 +8,7 @@
This module is safe to use in "from ... import *" mode; it only exports
symbols whose names start with "Distutils" and end with "Error"."""
-__revision__ = "$Id: errors.py 75901 2009-10-28 06:45:18Z tarek.ziade $"
+__revision__ = "$Id$"
class DistutilsError(Exception):
"""The root of all Distutils evil."""
diff --git a/lib-python/2.7.0/distutils/extension.py b/lib-python/2.7/distutils/extension.py
rename from lib-python/2.7.0/distutils/extension.py
rename to lib-python/2.7/distutils/extension.py
--- a/lib-python/2.7.0/distutils/extension.py
+++ b/lib-python/2.7/distutils/extension.py
@@ -3,7 +3,7 @@
Provides the Extension class, used to describe C/C++ extension
modules in setup scripts."""
-__revision__ = "$Id: extension.py 78666 2010-03-05 00:16:02Z tarek.ziade $"
+__revision__ = "$Id$"
import os, string, sys
from types import *
@@ -150,87 +150,96 @@
file = TextFile(filename,
strip_comments=1, skip_blanks=1, join_lines=1,
lstrip_ws=1, rstrip_ws=1)
- extensions = []
+ try:
+ extensions = []
- while 1:
- line = file.readline()
- if line is None: # eof
- break
- if _variable_rx.match(line): # VAR=VALUE, handled in first pass
- continue
-
- if line[0] == line[-1] == "*":
- file.warn("'%s' lines not handled yet" % line)
- continue
-
- #print "original line: " + line
- line = expand_makefile_vars(line, vars)
- words = split_quoted(line)
- #print "expanded line: " + line
-
- # NB. this parses a slightly different syntax than the old
- # makesetup script: here, there must be exactly one extension per
- # line, and it must be the first word of the line. I have no idea
- # why the old syntax supported multiple extensions per line, as
- # they all wind up being the same.
-
- module = words[0]
- ext = Extension(module, [])
- append_next_word = None
-
- for word in words[1:]:
- if append_next_word is not None:
- append_next_word.append(word)
- append_next_word = None
+ while 1:
+ line = file.readline()
+ if line is None: # eof
+ break
+ if _variable_rx.match(line): # VAR=VALUE, handled in first pass
continue
- suffix = os.path.splitext(word)[1]
- switch = word[0:2] ; value = word[2:]
+ if line[0] == line[-1] == "*":
+ file.warn("'%s' lines not handled yet" % line)
+ continue
- if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++", ".m", ".mm"):
- # hmm, should we do something about C vs. C++ sources?
- # or leave it up to the CCompiler implementation to
- # worry about?
- ext.sources.append(word)
- elif switch == "-I":
- ext.include_dirs.append(value)
- elif switch == "-D":
- equals = string.find(value, "=")
- if equals == -1: # bare "-DFOO" -- no value
- ext.define_macros.append((value, None))
- else: # "-DFOO=blah"
- ext.define_macros.append((value[0:equals],
- value[equals+2:]))
- elif switch == "-U":
- ext.undef_macros.append(value)
- elif switch == "-C": # only here 'cause makesetup has it!
- ext.extra_compile_args.append(word)
- elif switch == "-l":
- ext.libraries.append(value)
- elif switch == "-L":
- ext.library_dirs.append(value)
- elif switch == "-R":
- ext.runtime_library_dirs.append(value)
- elif word == "-rpath":
- append_next_word = ext.runtime_library_dirs
- elif word == "-Xlinker":
- append_next_word = ext.extra_link_args
- elif word == "-Xcompiler":
- append_next_word = ext.extra_compile_args
- elif switch == "-u":
- ext.extra_link_args.append(word)
- if not value:
+ #print "original line: " + line
+ line = expand_makefile_vars(line, vars)
+ words = split_quoted(line)
+ #print "expanded line: " + line
+
+ # NB. this parses a slightly different syntax than the old
+ # makesetup script: here, there must be exactly one extension per
+ # line, and it must be the first word of the line. I have no idea
+ # why the old syntax supported multiple extensions per line, as
+ # they all wind up being the same.
+
+ module = words[0]
+ ext = Extension(module, [])
+ append_next_word = None
+
+ for word in words[1:]:
+ if append_next_word is not None:
+ append_next_word.append(word)
+ append_next_word = None
+ continue
+
+ suffix = os.path.splitext(word)[1]
+ switch = word[0:2] ; value = word[2:]
+
+ if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++", ".m", ".mm"):
+ # hmm, should we do something about C vs. C++ sources?
+ # or leave it up to the CCompiler implementation to
+ # worry about?
+ ext.sources.append(word)
+ elif switch == "-I":
+ ext.include_dirs.append(value)
+ elif switch == "-D":
+ equals = string.find(value, "=")
+ if equals == -1: # bare "-DFOO" -- no value
+ ext.define_macros.append((value, None))
+ else: # "-DFOO=blah"
+ ext.define_macros.append((value[0:equals],
+ value[equals+2:]))
+ elif switch == "-U":
+ ext.undef_macros.append(value)
+ elif switch == "-C": # only here 'cause makesetup has it!
+ ext.extra_compile_args.append(word)
+ elif switch == "-l":
+ ext.libraries.append(value)
+ elif switch == "-L":
+ ext.library_dirs.append(value)
+ elif switch == "-R":
+ ext.runtime_library_dirs.append(value)
+ elif word == "-rpath":
+ append_next_word = ext.runtime_library_dirs
+ elif word == "-Xlinker":
append_next_word = ext.extra_link_args
- elif suffix in (".a", ".so", ".sl", ".o", ".dylib"):
- # NB. a really faithful emulation of makesetup would
- # append a .o file to extra_objects only if it
- # had a slash in it; otherwise, it would s/.o/.c/
- # and append it to sources. Hmmmm.
- ext.extra_objects.append(word)
- else:
- file.warn("unrecognized argument '%s'" % word)
+ elif word == "-Xcompiler":
+ append_next_word = ext.extra_compile_args
+ elif switch == "-u":
+ ext.extra_link_args.append(word)
+ if not value:
+ append_next_word = ext.extra_link_args
+ elif word == "-Xcompiler":
+ append_next_word = ext.extra_compile_args
+ elif switch == "-u":
+ ext.extra_link_args.append(word)
+ if not value:
+ append_next_word = ext.extra_link_args
+ elif suffix in (".a", ".so", ".sl", ".o", ".dylib"):
+ # NB. a really faithful emulation of makesetup would
+ # append a .o file to extra_objects only if it
+ # had a slash in it; otherwise, it would s/.o/.c/
+ # and append it to sources. Hmmmm.
+ ext.extra_objects.append(word)
+ else:
+ file.warn("unrecognized argument '%s'" % word)
- extensions.append(ext)
+ extensions.append(ext)
+ finally:
+ file.close()
#print "module:", module
#print "source files:", source_files
diff --git a/lib-python/2.7.0/distutils/fancy_getopt.py b/lib-python/2.7/distutils/fancy_getopt.py
rename from lib-python/2.7.0/distutils/fancy_getopt.py
rename to lib-python/2.7/distutils/fancy_getopt.py
--- a/lib-python/2.7.0/distutils/fancy_getopt.py
+++ b/lib-python/2.7/distutils/fancy_getopt.py
@@ -8,7 +8,7 @@
* options set attributes of a passed-in object
"""
-__revision__ = "$Id: fancy_getopt.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import string
diff --git a/lib-python/2.7.0/distutils/file_util.py b/lib-python/2.7/distutils/file_util.py
rename from lib-python/2.7.0/distutils/file_util.py
rename to lib-python/2.7/distutils/file_util.py
--- a/lib-python/2.7.0/distutils/file_util.py
+++ b/lib-python/2.7/distutils/file_util.py
@@ -3,7 +3,7 @@
Utility functions for operating on single files.
"""
-__revision__ = "$Id: file_util.py 80804 2010-05-05 19:09:31Z ronald.oussoren $"
+__revision__ = "$Id$"
import os
from distutils.errors import DistutilsFileError
@@ -224,6 +224,8 @@
sequence of strings without line terminators) to it.
"""
f = open(filename, "w")
- for line in contents:
- f.write(line + "\n")
- f.close()
+ try:
+ for line in contents:
+ f.write(line + "\n")
+ finally:
+ f.close()
diff --git a/lib-python/2.7.0/distutils/filelist.py b/lib-python/2.7/distutils/filelist.py
rename from lib-python/2.7.0/distutils/filelist.py
rename to lib-python/2.7/distutils/filelist.py
--- a/lib-python/2.7.0/distutils/filelist.py
+++ b/lib-python/2.7/distutils/filelist.py
@@ -4,7 +4,7 @@
and building lists of files.
"""
-__revision__ = "$Id: filelist.py 75196 2009-10-03 00:07:35Z tarek.ziade $"
+__revision__ = "$Id$"
import os, re
import fnmatch
diff --git a/lib-python/2.7.0/distutils/log.py b/lib-python/2.7/distutils/log.py
rename from lib-python/2.7.0/distutils/log.py
rename to lib-python/2.7/distutils/log.py
diff --git a/lib-python/2.7.0/distutils/msvc9compiler.py b/lib-python/2.7/distutils/msvc9compiler.py
rename from lib-python/2.7.0/distutils/msvc9compiler.py
rename to lib-python/2.7/distutils/msvc9compiler.py
--- a/lib-python/2.7.0/distutils/msvc9compiler.py
+++ b/lib-python/2.7/distutils/msvc9compiler.py
@@ -12,7 +12,7 @@
# finding DevStudio (through the registry)
# ported to VS2005 and VS 2008 by Christian Heimes
-__revision__ = "$Id: msvc9compiler.py 82130 2010-06-21 15:27:46Z benjamin.peterson $"
+__revision__ = "$Id$"
import os
import subprocess
@@ -273,23 +273,27 @@
popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+ try:
+ stdout, stderr = popen.communicate()
+ if popen.wait() != 0:
+ raise DistutilsPlatformError(stderr.decode("mbcs"))
- stdout, stderr = popen.communicate()
- if popen.wait() != 0:
- raise DistutilsPlatformError(stderr.decode("mbcs"))
+ stdout = stdout.decode("mbcs")
+ for line in stdout.split("\n"):
+ line = Reg.convert_mbcs(line)
+ if '=' not in line:
+ continue
+ line = line.strip()
+ key, value = line.split('=', 1)
+ key = key.lower()
+ if key in interesting:
+ if value.endswith(os.pathsep):
+ value = value[:-1]
+ result[key] = removeDuplicates(value)
- stdout = stdout.decode("mbcs")
- for line in stdout.split("\n"):
- line = Reg.convert_mbcs(line)
- if '=' not in line:
- continue
- line = line.strip()
- key, value = line.split('=', 1)
- key = key.lower()
- if key in interesting:
- if value.endswith(os.pathsep):
- value = value[:-1]
- result[key] = removeDuplicates(value)
+ finally:
+ popen.stdout.close()
+ popen.stderr.close()
if len(result) != len(interesting):
raise ValueError(str(list(result.keys())))
diff --git a/lib-python/2.7.0/distutils/msvccompiler.py b/lib-python/2.7/distutils/msvccompiler.py
rename from lib-python/2.7.0/distutils/msvccompiler.py
rename to lib-python/2.7/distutils/msvccompiler.py
--- a/lib-python/2.7.0/distutils/msvccompiler.py
+++ b/lib-python/2.7/distutils/msvccompiler.py
@@ -8,7 +8,7 @@
# hacked by Robin Becker and Thomas Heller to do a better job of
# finding DevStudio (through the registry)
-__revision__ = "$Id: msvccompiler.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import os
diff --git a/lib-python/2.7.0/distutils/spawn.py b/lib-python/2.7/distutils/spawn.py
rename from lib-python/2.7.0/distutils/spawn.py
rename to lib-python/2.7/distutils/spawn.py
--- a/lib-python/2.7.0/distutils/spawn.py
+++ b/lib-python/2.7/distutils/spawn.py
@@ -6,7 +6,7 @@
executable name.
"""
-__revision__ = "$Id: spawn.py 73147 2009-06-02 15:58:43Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
import os
diff --git a/lib-python/2.7.0/distutils/sysconfig.py b/lib-python/2.7/distutils/sysconfig.py
rename from lib-python/2.7.0/distutils/sysconfig.py
rename to lib-python/2.7/distutils/sysconfig.py
--- a/lib-python/2.7.0/distutils/sysconfig.py
+++ b/lib-python/2.7/distutils/sysconfig.py
@@ -9,7 +9,7 @@
Email: <fdrake at acm.org>
"""
-__revision__ = "$Id: sysconfig.py 85358 2010-10-10 09:54:59Z antoine.pitrou $"
+__revision__ = "$Id$"
import os
import re
@@ -453,32 +453,6 @@
_config_vars = g
-def _init_mac():
- """Initialize the module as appropriate for Macintosh systems"""
- g = {}
- # set basic install directories
- g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1)
- g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1)
-
- # XXX hmmm.. a normal install puts include files here
- g['INCLUDEPY'] = get_python_inc(plat_specific=0)
-
- import MacOS
- if not hasattr(MacOS, 'runtimemodel'):
- g['SO'] = '.ppc.slb'
- else:
- g['SO'] = '.%s.slb' % MacOS.runtimemodel
-
- # XXX are these used anywhere?
- g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")
- g['install_platlib'] = os.path.join(EXEC_PREFIX, "Mac", "Lib")
-
- # These are used by the extension module build
- g['srcdir'] = ':'
- global _config_vars
- _config_vars = g
-
-
def _init_os2():
"""Initialize the module as appropriate for OS/2"""
g = {}
diff --git a/lib-python/2.7.0/distutils/tests/Setup.sample b/lib-python/2.7/distutils/tests/Setup.sample
rename from lib-python/2.7.0/distutils/tests/Setup.sample
rename to lib-python/2.7/distutils/tests/Setup.sample
diff --git a/lib-python/2.7.0/distutils/tests/__init__.py b/lib-python/2.7/distutils/tests/__init__.py
rename from lib-python/2.7.0/distutils/tests/__init__.py
rename to lib-python/2.7/distutils/tests/__init__.py
diff --git a/lib-python/2.7.0/distutils/tests/setuptools_build_ext.py b/lib-python/2.7/distutils/tests/setuptools_build_ext.py
rename from lib-python/2.7.0/distutils/tests/setuptools_build_ext.py
rename to lib-python/2.7/distutils/tests/setuptools_build_ext.py
diff --git a/lib-python/2.7.0/distutils/tests/setuptools_extension.py b/lib-python/2.7/distutils/tests/setuptools_extension.py
rename from lib-python/2.7.0/distutils/tests/setuptools_extension.py
rename to lib-python/2.7/distutils/tests/setuptools_extension.py
diff --git a/lib-python/2.7.0/distutils/tests/support.py b/lib-python/2.7/distutils/tests/support.py
rename from lib-python/2.7.0/distutils/tests/support.py
rename to lib-python/2.7/distutils/tests/support.py
diff --git a/lib-python/2.7.0/distutils/tests/test_archive_util.py b/lib-python/2.7/distutils/tests/test_archive_util.py
rename from lib-python/2.7.0/distutils/tests/test_archive_util.py
rename to lib-python/2.7/distutils/tests/test_archive_util.py
--- a/lib-python/2.7.0/distutils/tests/test_archive_util.py
+++ b/lib-python/2.7/distutils/tests/test_archive_util.py
@@ -1,5 +1,5 @@
"""Tests for distutils.archive_util."""
-__revision__ = "$Id: test_archive_util.py 75659 2009-10-24 13:29:44Z tarek.ziade $"
+__revision__ = "$Id$"
import unittest
import os
@@ -129,7 +129,7 @@
self.assertTrue(os.path.exists(tarball2))
# let's compare both tarballs
- self.assertEquals(self._tarinfo(tarball), self._tarinfo(tarball2))
+ self.assertEqual(self._tarinfo(tarball), self._tarinfo(tarball2))
# trying an uncompressed one
base_name = os.path.join(tmpdir2, 'archive')
@@ -169,7 +169,7 @@
os.chdir(old_dir)
tarball = base_name + '.tar.Z'
self.assertTrue(os.path.exists(tarball))
- self.assertEquals(len(w.warnings), 1)
+ self.assertEqual(len(w.warnings), 1)
# same test with dry_run
os.remove(tarball)
@@ -183,7 +183,7 @@
finally:
os.chdir(old_dir)
self.assertTrue(not os.path.exists(tarball))
- self.assertEquals(len(w.warnings), 1)
+ self.assertEqual(len(w.warnings), 1)
@unittest.skipUnless(zlib, "Requires zlib")
@unittest.skipUnless(ZIP_SUPPORT, 'Need zip support to run')
@@ -201,9 +201,9 @@
tarball = base_name + '.zip'
def test_check_archive_formats(self):
- self.assertEquals(check_archive_formats(['gztar', 'xxx', 'zip']),
- 'xxx')
- self.assertEquals(check_archive_formats(['gztar', 'zip']), None)
+ self.assertEqual(check_archive_formats(['gztar', 'xxx', 'zip']),
+ 'xxx')
+ self.assertEqual(check_archive_formats(['gztar', 'zip']), None)
def test_make_archive(self):
tmpdir = self.mkdtemp()
@@ -258,8 +258,8 @@
archive = tarfile.open(archive_name)
try:
for member in archive.getmembers():
- self.assertEquals(member.uid, 0)
- self.assertEquals(member.gid, 0)
+ self.assertEqual(member.uid, 0)
+ self.assertEqual(member.gid, 0)
finally:
archive.close()
@@ -273,7 +273,7 @@
make_archive('xxx', 'xxx', root_dir=self.mkdtemp())
except:
pass
- self.assertEquals(os.getcwd(), current_dir)
+ self.assertEqual(os.getcwd(), current_dir)
finally:
del ARCHIVE_FORMATS['xxx']
diff --git a/lib-python/2.7.0/distutils/tests/test_bdist.py b/lib-python/2.7/distutils/tests/test_bdist.py
rename from lib-python/2.7.0/distutils/tests/test_bdist.py
rename to lib-python/2.7/distutils/tests/test_bdist.py
--- a/lib-python/2.7.0/distutils/tests/test_bdist.py
+++ b/lib-python/2.7/distutils/tests/test_bdist.py
@@ -25,7 +25,7 @@
cmd = bdist(dist)
cmd.formats = ['msi']
cmd.ensure_finalized()
- self.assertEquals(cmd.formats, ['msi'])
+ self.assertEqual(cmd.formats, ['msi'])
# what format bdist offers ?
# XXX an explicit list in bdist is
@@ -36,7 +36,7 @@
formats.sort()
founded = cmd.format_command.keys()
founded.sort()
- self.assertEquals(founded, formats)
+ self.assertEqual(founded, formats)
def test_suite():
return unittest.makeSuite(BuildTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_bdist_dumb.py b/lib-python/2.7/distutils/tests/test_bdist_dumb.py
rename from lib-python/2.7.0/distutils/tests/test_bdist_dumb.py
rename to lib-python/2.7/distutils/tests/test_bdist_dumb.py
--- a/lib-python/2.7.0/distutils/tests/test_bdist_dumb.py
+++ b/lib-python/2.7/distutils/tests/test_bdist_dumb.py
@@ -78,7 +78,7 @@
base = base.replace(':', '-')
wanted = ['%s.zip' % base]
- self.assertEquals(dist_created, wanted)
+ self.assertEqual(dist_created, wanted)
# now let's check what we have in the zip file
# XXX to be done
@@ -87,16 +87,16 @@
pkg_dir, dist = self.create_dist()
os.chdir(pkg_dir)
cmd = bdist_dumb(dist)
- self.assertEquals(cmd.bdist_dir, None)
+ self.assertEqual(cmd.bdist_dir, None)
cmd.finalize_options()
# bdist_dir is initialized to bdist_base/dumb if not set
base = cmd.get_finalized_command('bdist').bdist_base
- self.assertEquals(cmd.bdist_dir, os.path.join(base, 'dumb'))
+ self.assertEqual(cmd.bdist_dir, os.path.join(base, 'dumb'))
# the format is set to a default value depending on the os.name
default = cmd.default_format[os.name]
- self.assertEquals(cmd.format, default)
+ self.assertEqual(cmd.format, default)
def test_suite():
return unittest.makeSuite(BuildDumbTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_bdist_msi.py b/lib-python/2.7/distutils/tests/test_bdist_msi.py
rename from lib-python/2.7.0/distutils/tests/test_bdist_msi.py
rename to lib-python/2.7/distutils/tests/test_bdist_msi.py
diff --git a/lib-python/2.7.0/distutils/tests/test_bdist_rpm.py b/lib-python/2.7/distutils/tests/test_bdist_rpm.py
rename from lib-python/2.7.0/distutils/tests/test_bdist_rpm.py
rename to lib-python/2.7/distutils/tests/test_bdist_rpm.py
diff --git a/lib-python/2.7.0/distutils/tests/test_bdist_wininst.py b/lib-python/2.7/distutils/tests/test_bdist_wininst.py
rename from lib-python/2.7.0/distutils/tests/test_bdist_wininst.py
rename to lib-python/2.7/distutils/tests/test_bdist_wininst.py
diff --git a/lib-python/2.7.0/distutils/tests/test_build.py b/lib-python/2.7/distutils/tests/test_build.py
rename from lib-python/2.7.0/distutils/tests/test_build.py
rename to lib-python/2.7/distutils/tests/test_build.py
--- a/lib-python/2.7.0/distutils/tests/test_build.py
+++ b/lib-python/2.7/distutils/tests/test_build.py
@@ -17,11 +17,11 @@
cmd.finalize_options()
# if not specified, plat_name gets the current platform
- self.assertEquals(cmd.plat_name, get_platform())
+ self.assertEqual(cmd.plat_name, get_platform())
# build_purelib is build + lib
wanted = os.path.join(cmd.build_base, 'lib')
- self.assertEquals(cmd.build_purelib, wanted)
+ self.assertEqual(cmd.build_purelib, wanted)
# build_platlib is 'build/lib.platform-x.x[-pydebug]'
# examples:
@@ -31,21 +31,21 @@
self.assertTrue(cmd.build_platlib.endswith('-pydebug'))
plat_spec += '-pydebug'
wanted = os.path.join(cmd.build_base, 'lib' + plat_spec)
- self.assertEquals(cmd.build_platlib, wanted)
+ self.assertEqual(cmd.build_platlib, wanted)
# by default, build_lib = build_purelib
- self.assertEquals(cmd.build_lib, cmd.build_purelib)
+ self.assertEqual(cmd.build_lib, cmd.build_purelib)
# build_temp is build/temp.<plat>
wanted = os.path.join(cmd.build_base, 'temp' + plat_spec)
- self.assertEquals(cmd.build_temp, wanted)
+ self.assertEqual(cmd.build_temp, wanted)
# build_scripts is build/scripts-x.x
wanted = os.path.join(cmd.build_base, 'scripts-' + sys.version[0:3])
- self.assertEquals(cmd.build_scripts, wanted)
+ self.assertEqual(cmd.build_scripts, wanted)
# executable is os.path.normpath(sys.executable)
- self.assertEquals(cmd.executable, os.path.normpath(sys.executable))
+ self.assertEqual(cmd.executable, os.path.normpath(sys.executable))
def test_suite():
return unittest.makeSuite(BuildTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_build_clib.py b/lib-python/2.7/distutils/tests/test_build_clib.py
rename from lib-python/2.7.0/distutils/tests/test_build_clib.py
rename to lib-python/2.7/distutils/tests/test_build_clib.py
--- a/lib-python/2.7.0/distutils/tests/test_build_clib.py
+++ b/lib-python/2.7/distutils/tests/test_build_clib.py
@@ -55,14 +55,14 @@
self.assertRaises(DistutilsSetupError, cmd.get_source_files)
cmd.libraries = [('name', {'sources': ['a', 'b']})]
- self.assertEquals(cmd.get_source_files(), ['a', 'b'])
+ self.assertEqual(cmd.get_source_files(), ['a', 'b'])
cmd.libraries = [('name', {'sources': ('a', 'b')})]
- self.assertEquals(cmd.get_source_files(), ['a', 'b'])
+ self.assertEqual(cmd.get_source_files(), ['a', 'b'])
cmd.libraries = [('name', {'sources': ('a', 'b')}),
('name2', {'sources': ['c', 'd']})]
- self.assertEquals(cmd.get_source_files(), ['a', 'b', 'c', 'd'])
+ self.assertEqual(cmd.get_source_files(), ['a', 'b', 'c', 'd'])
def test_build_libraries(self):
@@ -91,11 +91,11 @@
cmd.include_dirs = 'one-dir'
cmd.finalize_options()
- self.assertEquals(cmd.include_dirs, ['one-dir'])
+ self.assertEqual(cmd.include_dirs, ['one-dir'])
cmd.include_dirs = None
cmd.finalize_options()
- self.assertEquals(cmd.include_dirs, [])
+ self.assertEqual(cmd.include_dirs, [])
cmd.distribution.libraries = 'WONTWORK'
self.assertRaises(DistutilsSetupError, cmd.finalize_options)
diff --git a/lib-python/2.7.0/distutils/tests/test_build_ext.py b/lib-python/2.7/distutils/tests/test_build_ext.py
rename from lib-python/2.7.0/distutils/tests/test_build_ext.py
rename to lib-python/2.7/distutils/tests/test_build_ext.py
--- a/lib-python/2.7.0/distutils/tests/test_build_ext.py
+++ b/lib-python/2.7/distutils/tests/test_build_ext.py
@@ -103,15 +103,15 @@
import xx
for attr in ('error', 'foo', 'new', 'roj'):
- self.assert_(hasattr(xx, attr))
+ self.assertTrue(hasattr(xx, attr))
- self.assertEquals(xx.foo(2, 5), 7)
- self.assertEquals(xx.foo(13,15), 28)
- self.assertEquals(xx.new().demo(), None)
+ self.assertEqual(xx.foo(2, 5), 7)
+ self.assertEqual(xx.foo(13,15), 28)
+ self.assertEqual(xx.new().demo(), None)
doc = 'This is a template module just for instruction.'
- self.assertEquals(xx.__doc__, doc)
- self.assert_(isinstance(xx.Null(), xx.Null))
- self.assert_(isinstance(xx.Str(), xx.Str))
+ self.assertEqual(xx.__doc__, doc)
+ self.assertTrue(isinstance(xx.Null(), xx.Null))
+ self.assertTrue(isinstance(xx.Str(), xx.Str))
def test_solaris_enable_shared(self):
dist = Distribution({'name': 'xx'})
@@ -132,7 +132,7 @@
_config_vars['Py_ENABLE_SHARED'] = old_var
# make sure we get some library dirs under solaris
- self.assert_(len(cmd.library_dirs) > 0)
+ self.assertTrue(len(cmd.library_dirs) > 0)
def test_finalize_options(self):
# Make sure Python's include directories (for Python.h, pyconfig.h,
@@ -144,31 +144,31 @@
from distutils import sysconfig
py_include = sysconfig.get_python_inc()
- self.assert_(py_include in cmd.include_dirs)
+ self.assertTrue(py_include in cmd.include_dirs)
plat_py_include = sysconfig.get_python_inc(plat_specific=1)
- self.assert_(plat_py_include in cmd.include_dirs)
+ self.assertTrue(plat_py_include in cmd.include_dirs)
# make sure cmd.libraries is turned into a list
# if it's a string
cmd = build_ext(dist)
cmd.libraries = 'my_lib'
cmd.finalize_options()
- self.assertEquals(cmd.libraries, ['my_lib'])
+ self.assertEqual(cmd.libraries, ['my_lib'])
# make sure cmd.library_dirs is turned into a list
# if it's a string
cmd = build_ext(dist)
cmd.library_dirs = 'my_lib_dir'
cmd.finalize_options()
- self.assert_('my_lib_dir' in cmd.library_dirs)
+ self.assertTrue('my_lib_dir' in cmd.library_dirs)
# make sure rpath is turned into a list
# if it's a list of os.pathsep's paths
cmd = build_ext(dist)
cmd.rpath = os.pathsep.join(['one', 'two'])
cmd.finalize_options()
- self.assertEquals(cmd.rpath, ['one', 'two'])
+ self.assertEqual(cmd.rpath, ['one', 'two'])
# XXX more tests to perform for win32
@@ -177,25 +177,25 @@
cmd = build_ext(dist)
cmd.define = 'one,two'
cmd.finalize_options()
- self.assertEquals(cmd.define, [('one', '1'), ('two', '1')])
+ self.assertEqual(cmd.define, [('one', '1'), ('two', '1')])
# make sure undef is turned into a list of
# strings if they are ','-separated strings
cmd = build_ext(dist)
cmd.undef = 'one,two'
cmd.finalize_options()
- self.assertEquals(cmd.undef, ['one', 'two'])
+ self.assertEqual(cmd.undef, ['one', 'two'])
# make sure swig_opts is turned into a list
cmd = build_ext(dist)
cmd.swig_opts = None
cmd.finalize_options()
- self.assertEquals(cmd.swig_opts, [])
+ self.assertEqual(cmd.swig_opts, [])
cmd = build_ext(dist)
cmd.swig_opts = '1 2'
cmd.finalize_options()
- self.assertEquals(cmd.swig_opts, ['1', '2'])
+ self.assertEqual(cmd.swig_opts, ['1', '2'])
def test_check_extensions_list(self):
dist = Distribution()
@@ -226,13 +226,13 @@
'some': 'bar'})]
cmd.check_extensions_list(exts)
ext = exts[0]
- self.assert_(isinstance(ext, Extension))
+ self.assertTrue(isinstance(ext, Extension))
# check_extensions_list adds in ext the values passed
# when they are in ('include_dirs', 'library_dirs', 'libraries'
# 'extra_objects', 'extra_compile_args', 'extra_link_args')
- self.assertEquals(ext.libraries, 'foo')
- self.assert_(not hasattr(ext, 'some'))
+ self.assertEqual(ext.libraries, 'foo')
+ self.assertTrue(not hasattr(ext, 'some'))
# 'macros' element of build info dict must be 1- or 2-tuple
exts = [('foo.bar', {'sources': [''], 'libraries': 'foo',
@@ -241,15 +241,15 @@
exts[0][1]['macros'] = [('1', '2'), ('3',)]
cmd.check_extensions_list(exts)
- self.assertEquals(exts[0].undef_macros, ['3'])
- self.assertEquals(exts[0].define_macros, [('1', '2')])
+ self.assertEqual(exts[0].undef_macros, ['3'])
+ self.assertEqual(exts[0].define_macros, [('1', '2')])
def test_get_source_files(self):
modules = [Extension('foo', ['xxx'])]
dist = Distribution({'name': 'xx', 'ext_modules': modules})
cmd = build_ext(dist)
cmd.ensure_finalized()
- self.assertEquals(cmd.get_source_files(), ['xxx'])
+ self.assertEqual(cmd.get_source_files(), ['xxx'])
def test_compiler_option(self):
# cmd.compiler is an option and
@@ -260,7 +260,7 @@
cmd.compiler = 'unix'
cmd.ensure_finalized()
cmd.run()
- self.assertEquals(cmd.compiler, 'unix')
+ self.assertEqual(cmd.compiler, 'unix')
def test_get_outputs(self):
tmp_dir = self.mkdtemp()
@@ -272,7 +272,7 @@
cmd = build_ext(dist)
self._fixup_command(cmd)
cmd.ensure_finalized()
- self.assertEquals(len(cmd.get_outputs()), 1)
+ self.assertEqual(len(cmd.get_outputs()), 1)
if os.name == "nt":
cmd.debug = sys.executable.endswith("_d.exe")
@@ -291,20 +291,20 @@
so_file = cmd.get_outputs()[0]
finally:
os.chdir(old_wd)
- self.assert_(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
- sysconfig.get_config_var('SO'))
+ self.assertTrue(os.path.exists(so_file))
+ self.assertEqual(os.path.splitext(so_file)[-1],
+ sysconfig.get_config_var('SO'))
so_dir = os.path.dirname(so_file)
- self.assertEquals(so_dir, other_tmp_dir)
+ self.assertEqual(so_dir, other_tmp_dir)
cmd.compiler = None
cmd.inplace = 0
cmd.run()
so_file = cmd.get_outputs()[0]
- self.assert_(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
- sysconfig.get_config_var('SO'))
+ self.assertTrue(os.path.exists(so_file))
+ self.assertEqual(os.path.splitext(so_file)[-1],
+ sysconfig.get_config_var('SO'))
so_dir = os.path.dirname(so_file)
- self.assertEquals(so_dir, cmd.build_lib)
+ self.assertEqual(so_dir, cmd.build_lib)
# inplace = 0, cmd.package = 'bar'
build_py = cmd.get_finalized_command('build_py')
@@ -312,7 +312,7 @@
path = cmd.get_ext_fullpath('foo')
# checking that the last directory is the build_dir
path = os.path.split(path)[0]
- self.assertEquals(path, cmd.build_lib)
+ self.assertEqual(path, cmd.build_lib)
# inplace = 1, cmd.package = 'bar'
cmd.inplace = 1
@@ -326,7 +326,7 @@
# checking that the last directory is bar
path = os.path.split(path)[0]
lastdir = os.path.split(path)[-1]
- self.assertEquals(lastdir, 'bar')
+ self.assertEqual(lastdir, 'bar')
def test_ext_fullpath(self):
ext = sysconfig.get_config_vars()['SO']
@@ -338,14 +338,14 @@
curdir = os.getcwd()
wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
# building lxml.etree not inplace
cmd.inplace = 0
cmd.build_lib = os.path.join(curdir, 'tmpdir')
wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
# building twisted.runner.portmap not inplace
build_py = cmd.get_finalized_command('build_py')
@@ -354,13 +354,13 @@
path = cmd.get_ext_fullpath('twisted.runner.portmap')
wanted = os.path.join(curdir, 'tmpdir', 'twisted', 'runner',
'portmap' + ext)
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
# building twisted.runner.portmap inplace
cmd.inplace = 1
path = cmd.get_ext_fullpath('twisted.runner.portmap')
wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext)
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
def test_build_ext_inplace(self):
etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c')
@@ -375,7 +375,7 @@
ext = sysconfig.get_config_var("SO")
wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
def test_setuptools_compat(self):
import distutils.core, distutils.extension, distutils.command.build_ext
@@ -400,7 +400,7 @@
ext = sysconfig.get_config_var("SO")
wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
- self.assertEquals(wanted, path)
+ self.assertEqual(wanted, path)
finally:
# restoring Distutils' Extension class otherwise its broken
distutils.extension.Extension = saved_ext
@@ -415,7 +415,7 @@
ext_name = os.path.join('UpdateManager', 'fdsend')
ext_path = cmd.get_ext_fullpath(ext_name)
wanted = os.path.join(cmd.build_lib, 'UpdateManager', 'fdsend' + ext)
- self.assertEquals(ext_path, wanted)
+ self.assertEqual(ext_path, wanted)
def test_build_ext_path_cross_platform(self):
if sys.platform != 'win32':
@@ -428,7 +428,7 @@
ext_name = 'UpdateManager/fdsend'
ext_path = cmd.get_ext_fullpath(ext_name)
wanted = os.path.join(cmd.build_lib, 'UpdateManager', 'fdsend' + ext)
- self.assertEquals(ext_path, wanted)
+ self.assertEqual(ext_path, wanted)
def test_suite():
return unittest.makeSuite(BuildExtTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_build_py.py b/lib-python/2.7/distutils/tests/test_build_py.py
rename from lib-python/2.7.0/distutils/tests/test_build_py.py
rename to lib-python/2.7/distutils/tests/test_build_py.py
--- a/lib-python/2.7.0/distutils/tests/test_build_py.py
+++ b/lib-python/2.7/distutils/tests/test_build_py.py
@@ -19,11 +19,15 @@
def _setup_package_data(self):
sources = self.mkdtemp()
f = open(os.path.join(sources, "__init__.py"), "w")
- f.write("# Pretend this is a package.")
- f.close()
+ try:
+ f.write("# Pretend this is a package.")
+ finally:
+ f.close()
f = open(os.path.join(sources, "README.txt"), "w")
- f.write("Info about this package")
- f.close()
+ try:
+ f.write("Info about this package")
+ finally:
+ f.close()
destination = self.mkdtemp()
diff --git a/lib-python/2.7.0/distutils/tests/test_build_scripts.py b/lib-python/2.7/distutils/tests/test_build_scripts.py
rename from lib-python/2.7.0/distutils/tests/test_build_scripts.py
rename to lib-python/2.7/distutils/tests/test_build_scripts.py
--- a/lib-python/2.7.0/distutils/tests/test_build_scripts.py
+++ b/lib-python/2.7/distutils/tests/test_build_scripts.py
@@ -71,8 +71,10 @@
def write_script(self, dir, name, text):
f = open(os.path.join(dir, name), "w")
- f.write(text)
- f.close()
+ try:
+ f.write(text)
+ finally:
+ f.close()
def test_version_int(self):
source = self.mkdtemp()
diff --git a/lib-python/2.7.0/distutils/tests/test_ccompiler.py b/lib-python/2.7/distutils/tests/test_ccompiler.py
rename from lib-python/2.7.0/distutils/tests/test_ccompiler.py
rename to lib-python/2.7/distutils/tests/test_ccompiler.py
--- a/lib-python/2.7.0/distutils/tests/test_ccompiler.py
+++ b/lib-python/2.7/distutils/tests/test_ccompiler.py
@@ -32,7 +32,7 @@
opts = gen_lib_options(compiler, libdirs, runlibdirs, libs)
wanted = ['-Llib1', '-Llib2', '-cool', '-Rrunlib1', 'found',
'-lname2']
- self.assertEquals(opts, wanted)
+ self.assertEqual(opts, wanted)
def test_debug_print(self):
@@ -43,14 +43,14 @@
with captured_stdout() as stdout:
compiler.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), '')
+ self.assertEqual(stdout.read(), '')
debug.DEBUG = True
try:
with captured_stdout() as stdout:
compiler.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), 'xxx\n')
+ self.assertEqual(stdout.read(), 'xxx\n')
finally:
debug.DEBUG = False
@@ -72,7 +72,7 @@
comp = compiler()
customize_compiler(comp)
- self.assertEquals(comp.exes['archiver'], 'my_ar -arflags')
+ self.assertEqual(comp.exes['archiver'], 'my_ar -arflags')
def test_suite():
return unittest.makeSuite(CCompilerTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_check.py b/lib-python/2.7/distutils/tests/test_check.py
rename from lib-python/2.7.0/distutils/tests/test_check.py
rename to lib-python/2.7/distutils/tests/test_check.py
--- a/lib-python/2.7.0/distutils/tests/test_check.py
+++ b/lib-python/2.7/distutils/tests/test_check.py
@@ -26,7 +26,7 @@
# by default, check is checking the metadata
# should have some warnings
cmd = self._run()
- self.assertEquals(cmd._warnings, 2)
+ self.assertEqual(cmd._warnings, 2)
# now let's add the required fields
# and run it again, to make sure we don't get
@@ -35,7 +35,7 @@
'author_email': 'xxx',
'name': 'xxx', 'version': 'xxx'}
cmd = self._run(metadata)
- self.assertEquals(cmd._warnings, 0)
+ self.assertEqual(cmd._warnings, 0)
# now with the strict mode, we should
# get an error if there are missing metadata
@@ -43,7 +43,7 @@
# and of course, no error when all metadata are present
cmd = self._run(metadata, strict=1)
- self.assertEquals(cmd._warnings, 0)
+ self.assertEqual(cmd._warnings, 0)
def test_check_document(self):
if not HAS_DOCUTILS: # won't test without docutils
@@ -54,12 +54,12 @@
# let's see if it detects broken rest
broken_rest = 'title\n===\n\ntest'
msgs = cmd._check_rst_data(broken_rest)
- self.assertEquals(len(msgs), 1)
+ self.assertEqual(len(msgs), 1)
# and non-broken rest
rest = 'title\n=====\n\ntest'
msgs = cmd._check_rst_data(rest)
- self.assertEquals(len(msgs), 0)
+ self.assertEqual(len(msgs), 0)
def test_check_restructuredtext(self):
if not HAS_DOCUTILS: # won't test without docutils
@@ -69,7 +69,7 @@
pkg_info, dist = self.create_dist(long_description=broken_rest)
cmd = check(dist)
cmd.check_restructuredtext()
- self.assertEquals(cmd._warnings, 1)
+ self.assertEqual(cmd._warnings, 1)
# let's see if we have an error with strict=1
metadata = {'url': 'xxx', 'author': 'xxx',
@@ -82,7 +82,7 @@
# and non-broken rest
metadata['long_description'] = 'title\n=====\n\ntest'
cmd = self._run(metadata, strict=1, restructuredtext=1)
- self.assertEquals(cmd._warnings, 0)
+ self.assertEqual(cmd._warnings, 0)
def test_check_all(self):
diff --git a/lib-python/2.7.0/distutils/tests/test_clean.py b/lib-python/2.7/distutils/tests/test_clean.py
rename from lib-python/2.7.0/distutils/tests/test_clean.py
rename to lib-python/2.7/distutils/tests/test_clean.py
diff --git a/lib-python/2.7.0/distutils/tests/test_cmd.py b/lib-python/2.7/distutils/tests/test_cmd.py
rename from lib-python/2.7.0/distutils/tests/test_cmd.py
rename to lib-python/2.7/distutils/tests/test_cmd.py
--- a/lib-python/2.7.0/distutils/tests/test_cmd.py
+++ b/lib-python/2.7/distutils/tests/test_cmd.py
@@ -44,7 +44,7 @@
# making sure execute gets called properly
def _execute(func, args, exec_msg, level):
- self.assertEquals(exec_msg, 'generating out from in')
+ self.assertEqual(exec_msg, 'generating out from in')
cmd.force = True
cmd.execute = _execute
cmd.make_file(infiles='in', outfile='out', func='func', args=())
@@ -63,7 +63,7 @@
wanted = ["command options for 'MyCmd':", ' option1 = 1',
' option2 = 1']
- self.assertEquals(msgs, wanted)
+ self.assertEqual(msgs, wanted)
def test_ensure_string(self):
cmd = self.cmd
@@ -81,7 +81,7 @@
cmd = self.cmd
cmd.option1 = 'ok,dok'
cmd.ensure_string_list('option1')
- self.assertEquals(cmd.option1, ['ok', 'dok'])
+ self.assertEqual(cmd.option1, ['ok', 'dok'])
cmd.option2 = ['xxx', 'www']
cmd.ensure_string_list('option2')
@@ -109,14 +109,14 @@
with captured_stdout() as stdout:
cmd.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), '')
+ self.assertEqual(stdout.read(), '')
debug.DEBUG = True
try:
with captured_stdout() as stdout:
cmd.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), 'xxx\n')
+ self.assertEqual(stdout.read(), 'xxx\n')
finally:
debug.DEBUG = False
diff --git a/lib-python/2.7.0/distutils/tests/test_config.py b/lib-python/2.7/distutils/tests/test_config.py
rename from lib-python/2.7.0/distutils/tests/test_config.py
rename to lib-python/2.7/distutils/tests/test_config.py
--- a/lib-python/2.7.0/distutils/tests/test_config.py
+++ b/lib-python/2.7/distutils/tests/test_config.py
@@ -90,7 +90,7 @@
waited = [('password', 'secret'), ('realm', 'pypi'),
('repository', 'http://pypi.python.org/pypi'),
('server', 'server1'), ('username', 'me')]
- self.assertEquals(config, waited)
+ self.assertEqual(config, waited)
# old format
self.write_file(self.rc, PYPIRC_OLD)
@@ -100,7 +100,7 @@
waited = [('password', 'secret'), ('realm', 'pypi'),
('repository', 'http://pypi.python.org/pypi'),
('server', 'server-login'), ('username', 'tarek')]
- self.assertEquals(config, waited)
+ self.assertEqual(config, waited)
def test_server_empty_registration(self):
cmd = self._cmd(self.dist)
@@ -108,8 +108,12 @@
self.assertTrue(not os.path.exists(rc))
cmd._store_pypirc('tarek', 'xxx')
self.assertTrue(os.path.exists(rc))
- content = open(rc).read()
- self.assertEquals(content, WANTED)
+ f = open(rc)
+ try:
+ content = f.read()
+ self.assertEqual(content, WANTED)
+ finally:
+ f.close()
def test_suite():
return unittest.makeSuite(PyPIRCCommandTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_config_cmd.py b/lib-python/2.7/distutils/tests/test_config_cmd.py
rename from lib-python/2.7.0/distutils/tests/test_config_cmd.py
rename to lib-python/2.7/distutils/tests/test_config_cmd.py
--- a/lib-python/2.7.0/distutils/tests/test_config_cmd.py
+++ b/lib-python/2.7/distutils/tests/test_config_cmd.py
@@ -34,7 +34,7 @@
f.close()
dump_file(this_file, 'I am the header')
- self.assertEquals(len(self._logs), numlines+1)
+ self.assertEqual(len(self._logs), numlines+1)
def test_search_cpp(self):
if sys.platform == 'win32':
@@ -44,10 +44,10 @@
# simple pattern searches
match = cmd.search_cpp(pattern='xxx', body='// xxx')
- self.assertEquals(match, 0)
+ self.assertEqual(match, 0)
match = cmd.search_cpp(pattern='_configtest', body='// xxx')
- self.assertEquals(match, 1)
+ self.assertEqual(match, 1)
def test_finalize_options(self):
# finalize_options does a bit of transformation
@@ -59,9 +59,9 @@
cmd.library_dirs = 'three%sfour' % os.pathsep
cmd.ensure_finalized()
- self.assertEquals(cmd.include_dirs, ['one', 'two'])
- self.assertEquals(cmd.libraries, ['one'])
- self.assertEquals(cmd.library_dirs, ['three', 'four'])
+ self.assertEqual(cmd.include_dirs, ['one', 'two'])
+ self.assertEqual(cmd.libraries, ['one'])
+ self.assertEqual(cmd.library_dirs, ['three', 'four'])
def test_clean(self):
# _clean removes files
diff --git a/lib-python/2.7.0/distutils/tests/test_core.py b/lib-python/2.7/distutils/tests/test_core.py
rename from lib-python/2.7.0/distutils/tests/test_core.py
rename to lib-python/2.7/distutils/tests/test_core.py
--- a/lib-python/2.7.0/distutils/tests/test_core.py
+++ b/lib-python/2.7/distutils/tests/test_core.py
@@ -52,7 +52,11 @@
shutil.rmtree(path)
def write_setup(self, text, path=test.test_support.TESTFN):
- open(path, "w").write(text)
+ f = open(path, "w")
+ try:
+ f.write(text)
+ finally:
+ f.close()
return path
def test_run_setup_provides_file(self):
@@ -85,7 +89,7 @@
with captured_stdout() as stdout:
distutils.core.setup(name='bar')
stdout.seek(0)
- self.assertEquals(stdout.read(), 'bar\n')
+ self.assertEqual(stdout.read(), 'bar\n')
distutils.core.DEBUG = True
try:
@@ -95,7 +99,7 @@
distutils.core.DEBUG = False
stdout.seek(0)
wanted = "options (after parsing config files):\n"
- self.assertEquals(stdout.readlines()[0], wanted)
+ self.assertEqual(stdout.readlines()[0], wanted)
def test_suite():
return unittest.makeSuite(CoreTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_dep_util.py b/lib-python/2.7/distutils/tests/test_dep_util.py
rename from lib-python/2.7.0/distutils/tests/test_dep_util.py
rename to lib-python/2.7/distutils/tests/test_dep_util.py
--- a/lib-python/2.7.0/distutils/tests/test_dep_util.py
+++ b/lib-python/2.7/distutils/tests/test_dep_util.py
@@ -42,8 +42,8 @@
self.write_file(two)
self.write_file(four)
- self.assertEquals(newer_pairwise([one, two], [three, four]),
- ([one],[three]))
+ self.assertEqual(newer_pairwise([one, two], [three, four]),
+ ([one],[three]))
def test_newer_group(self):
tmpdir = self.mkdtemp()
diff --git a/lib-python/2.7.0/distutils/tests/test_dir_util.py b/lib-python/2.7/distutils/tests/test_dir_util.py
rename from lib-python/2.7.0/distutils/tests/test_dir_util.py
rename to lib-python/2.7/distutils/tests/test_dir_util.py
--- a/lib-python/2.7.0/distutils/tests/test_dir_util.py
+++ b/lib-python/2.7/distutils/tests/test_dir_util.py
@@ -37,18 +37,18 @@
mkpath(self.target, verbose=0)
wanted = []
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
remove_tree(self.root_target, verbose=0)
mkpath(self.target, verbose=1)
wanted = ['creating %s' % self.root_target,
'creating %s' % self.target]
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
self._logs = []
remove_tree(self.root_target, verbose=1)
wanted = ["removing '%s' (and everything under it)" % self.root_target]
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
@unittest.skipIf(sys.platform.startswith('win'),
"This test is only appropriate for POSIX-like systems.")
@@ -66,12 +66,12 @@
def test_create_tree_verbosity(self):
create_tree(self.root_target, ['one', 'two', 'three'], verbose=0)
- self.assertEquals(self._logs, [])
+ self.assertEqual(self._logs, [])
remove_tree(self.root_target, verbose=0)
wanted = ['creating %s' % self.root_target]
create_tree(self.root_target, ['one', 'two', 'three'], verbose=1)
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
remove_tree(self.root_target, verbose=0)
@@ -81,30 +81,32 @@
mkpath(self.target, verbose=0)
copy_tree(self.target, self.target2, verbose=0)
- self.assertEquals(self._logs, [])
+ self.assertEqual(self._logs, [])
remove_tree(self.root_target, verbose=0)
mkpath(self.target, verbose=0)
a_file = os.path.join(self.target, 'ok.txt')
f = open(a_file, 'w')
- f.write('some content')
- f.close()
+ try:
+ f.write('some content')
+ finally:
+ f.close()
wanted = ['copying %s -> %s' % (a_file, self.target2)]
copy_tree(self.target, self.target2, verbose=1)
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
remove_tree(self.root_target, verbose=0)
remove_tree(self.target2, verbose=0)
def test_ensure_relative(self):
if os.sep == '/':
- self.assertEquals(ensure_relative('/home/foo'), 'home/foo')
- self.assertEquals(ensure_relative('some/path'), 'some/path')
+ self.assertEqual(ensure_relative('/home/foo'), 'home/foo')
+ self.assertEqual(ensure_relative('some/path'), 'some/path')
else: # \\
- self.assertEquals(ensure_relative('c:\\home\\foo'), 'c:home\\foo')
- self.assertEquals(ensure_relative('home\\foo'), 'home\\foo')
+ self.assertEqual(ensure_relative('c:\\home\\foo'), 'c:home\\foo')
+ self.assertEqual(ensure_relative('home\\foo'), 'home\\foo')
def test_suite():
return unittest.makeSuite(DirUtilTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_dist.py b/lib-python/2.7/distutils/tests/test_dist.py
rename from lib-python/2.7.0/distutils/tests/test_dist.py
rename to lib-python/2.7/distutils/tests/test_dist.py
--- a/lib-python/2.7.0/distutils/tests/test_dist.py
+++ b/lib-python/2.7/distutils/tests/test_dist.py
@@ -70,13 +70,13 @@
with captured_stdout() as stdout:
self.create_distribution(files)
stdout.seek(0)
- self.assertEquals(stdout.read(), '')
+ self.assertEqual(stdout.read(), '')
distutils.dist.DEBUG = True
try:
with captured_stdout() as stdout:
self.create_distribution(files)
stdout.seek(0)
- self.assertEquals(stdout.read(), '')
+ self.assertEqual(stdout.read(), '')
finally:
distutils.dist.DEBUG = False
@@ -102,29 +102,29 @@
def test_command_packages_configfile(self):
sys.argv.append("build")
+ self.addCleanup(os.unlink, TESTFN)
f = open(TESTFN, "w")
try:
print >>f, "[global]"
print >>f, "command_packages = foo.bar, splat"
+ finally:
f.close()
- d = self.create_distribution([TESTFN])
- self.assertEqual(d.get_command_packages(),
- ["distutils.command", "foo.bar", "splat"])
- # ensure command line overrides config:
- sys.argv[1:] = ["--command-packages", "spork", "build"]
- d = self.create_distribution([TESTFN])
- self.assertEqual(d.get_command_packages(),
- ["distutils.command", "spork"])
+ d = self.create_distribution([TESTFN])
+ self.assertEqual(d.get_command_packages(),
+ ["distutils.command", "foo.bar", "splat"])
- # Setting --command-packages to '' should cause the default to
- # be used even if a config file specified something else:
- sys.argv[1:] = ["--command-packages", "", "build"]
- d = self.create_distribution([TESTFN])
- self.assertEqual(d.get_command_packages(), ["distutils.command"])
+ # ensure command line overrides config:
+ sys.argv[1:] = ["--command-packages", "spork", "build"]
+ d = self.create_distribution([TESTFN])
+ self.assertEqual(d.get_command_packages(),
+ ["distutils.command", "spork"])
- finally:
- os.unlink(TESTFN)
+ # Setting --command-packages to '' should cause the default to
+ # be used even if a config file specified something else:
+ sys.argv[1:] = ["--command-packages", "", "build"]
+ d = self.create_distribution([TESTFN])
+ self.assertEqual(d.get_command_packages(), ["distutils.command"])
def test_write_pkg_file(self):
# Check DistributionMetadata handling of Unicode fields
@@ -175,7 +175,7 @@
finally:
warnings.warn = old_warn
- self.assertEquals(len(warns), 0)
+ self.assertEqual(len(warns), 0)
def test_finalize_options(self):
@@ -186,20 +186,20 @@
dist.finalize_options()
# finalize_option splits platforms and keywords
- self.assertEquals(dist.metadata.platforms, ['one', 'two'])
- self.assertEquals(dist.metadata.keywords, ['one', 'two'])
+ self.assertEqual(dist.metadata.platforms, ['one', 'two'])
+ self.assertEqual(dist.metadata.keywords, ['one', 'two'])
def test_get_command_packages(self):
dist = Distribution()
- self.assertEquals(dist.command_packages, None)
+ self.assertEqual(dist.command_packages, None)
cmds = dist.get_command_packages()
- self.assertEquals(cmds, ['distutils.command'])
- self.assertEquals(dist.command_packages,
- ['distutils.command'])
+ self.assertEqual(cmds, ['distutils.command'])
+ self.assertEqual(dist.command_packages,
+ ['distutils.command'])
dist.command_packages = 'one,two'
cmds = dist.get_command_packages()
- self.assertEquals(cmds, ['distutils.command', 'one', 'two'])
+ self.assertEqual(cmds, ['distutils.command', 'one', 'two'])
def test_announce(self):
@@ -236,7 +236,7 @@
os.path.expanduser = old_expander
# make sure --no-user-cfg disables the user cfg file
- self.assertEquals(len(all_files)-1, len(files))
+ self.assertEqual(len(all_files)-1, len(files))
class MetadataTestCase(support.TempdirManager, support.EnvironGuard,
@@ -341,8 +341,10 @@
temp_dir = self.mkdtemp()
user_filename = os.path.join(temp_dir, user_filename)
f = open(user_filename, 'w')
- f.write('.')
- f.close()
+ try:
+ f.write('.')
+ finally:
+ f.close()
try:
dist = Distribution()
@@ -366,8 +368,8 @@
def test_fix_help_options(self):
help_tuples = [('a', 'b', 'c', 'd'), (1, 2, 3, 4)]
fancy_options = fix_help_options(help_tuples)
- self.assertEquals(fancy_options[0], ('a', 'b', 'c'))
- self.assertEquals(fancy_options[1], (1, 2, 3))
+ self.assertEqual(fancy_options[0], ('a', 'b', 'c'))
+ self.assertEqual(fancy_options[1], (1, 2, 3))
def test_show_help(self):
# smoke test, just makes sure some help is displayed
@@ -415,14 +417,14 @@
PKG_INFO.seek(0)
metadata.read_pkg_file(PKG_INFO)
- self.assertEquals(metadata.name, "package")
- self.assertEquals(metadata.version, "1.0")
- self.assertEquals(metadata.description, "xxx")
- self.assertEquals(metadata.download_url, 'http://example.com')
- self.assertEquals(metadata.keywords, ['one', 'two'])
- self.assertEquals(metadata.platforms, ['UNKNOWN'])
- self.assertEquals(metadata.obsoletes, None)
- self.assertEquals(metadata.requires, ['foo'])
+ self.assertEqual(metadata.name, "package")
+ self.assertEqual(metadata.version, "1.0")
+ self.assertEqual(metadata.description, "xxx")
+ self.assertEqual(metadata.download_url, 'http://example.com')
+ self.assertEqual(metadata.keywords, ['one', 'two'])
+ self.assertEqual(metadata.platforms, ['UNKNOWN'])
+ self.assertEqual(metadata.obsoletes, None)
+ self.assertEqual(metadata.requires, ['foo'])
def test_suite():
suite = unittest.TestSuite()
diff --git a/lib-python/2.7.0/distutils/tests/test_file_util.py b/lib-python/2.7/distutils/tests/test_file_util.py
rename from lib-python/2.7.0/distutils/tests/test_file_util.py
rename to lib-python/2.7/distutils/tests/test_file_util.py
--- a/lib-python/2.7.0/distutils/tests/test_file_util.py
+++ b/lib-python/2.7/distutils/tests/test_file_util.py
@@ -31,19 +31,21 @@
def test_move_file_verbosity(self):
f = open(self.source, 'w')
- f.write('some content')
- f.close()
+ try:
+ f.write('some content')
+ finally:
+ f.close()
move_file(self.source, self.target, verbose=0)
wanted = []
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
# back to original state
move_file(self.target, self.source, verbose=0)
move_file(self.source, self.target, verbose=1)
wanted = ['moving %s -> %s' % (self.source, self.target)]
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
# back to original state
move_file(self.target, self.source, verbose=0)
@@ -53,7 +55,7 @@
os.mkdir(self.target_dir)
move_file(self.source, self.target_dir, verbose=1)
wanted = ['moving %s -> %s' % (self.source, self.target_dir)]
- self.assertEquals(self._logs, wanted)
+ self.assertEqual(self._logs, wanted)
def test_write_file(self):
lines = ['a', 'b', 'c']
@@ -61,7 +63,7 @@
foo = os.path.join(dir, 'foo')
write_file(foo, lines)
content = [line.strip() for line in open(foo).readlines()]
- self.assertEquals(content, lines)
+ self.assertEqual(content, lines)
def test_copy_file(self):
src_dir = self.mkdtemp()
diff --git a/lib-python/2.7.0/distutils/tests/test_filelist.py b/lib-python/2.7/distutils/tests/test_filelist.py
rename from lib-python/2.7.0/distutils/tests/test_filelist.py
rename to lib-python/2.7/distutils/tests/test_filelist.py
--- a/lib-python/2.7.0/distutils/tests/test_filelist.py
+++ b/lib-python/2.7/distutils/tests/test_filelist.py
@@ -24,15 +24,15 @@
def test_glob_to_re(self):
# simple cases
- self.assertEquals(glob_to_re('foo*'), 'foo[^/]*\\Z(?ms)')
- self.assertEquals(glob_to_re('foo?'), 'foo[^/]\\Z(?ms)')
- self.assertEquals(glob_to_re('foo??'), 'foo[^/][^/]\\Z(?ms)')
+ self.assertEqual(glob_to_re('foo*'), 'foo[^/]*\\Z(?ms)')
+ self.assertEqual(glob_to_re('foo?'), 'foo[^/]\\Z(?ms)')
+ self.assertEqual(glob_to_re('foo??'), 'foo[^/][^/]\\Z(?ms)')
# special cases
- self.assertEquals(glob_to_re(r'foo\\*'), r'foo\\\\[^/]*\Z(?ms)')
- self.assertEquals(glob_to_re(r'foo\\\*'), r'foo\\\\\\[^/]*\Z(?ms)')
- self.assertEquals(glob_to_re('foo????'), r'foo[^/][^/][^/][^/]\Z(?ms)')
- self.assertEquals(glob_to_re(r'foo\\??'), r'foo\\\\[^/][^/]\Z(?ms)')
+ self.assertEqual(glob_to_re(r'foo\\*'), r'foo\\\\[^/]*\Z(?ms)')
+ self.assertEqual(glob_to_re(r'foo\\\*'), r'foo\\\\\\[^/]*\Z(?ms)')
+ self.assertEqual(glob_to_re('foo????'), r'foo[^/][^/][^/][^/]\Z(?ms)')
+ self.assertEqual(glob_to_re(r'foo\\??'), r'foo\\\\[^/][^/]\Z(?ms)')
def test_process_template_line(self):
# testing all MANIFEST.in template patterns
@@ -60,21 +60,21 @@
join('global', 'two.txt'), join('f', 'o', 'f.oo'),
join('dir', 'graft-one'), join('dir', 'dir2', 'graft2')]
- self.assertEquals(file_list.files, wanted)
+ self.assertEqual(file_list.files, wanted)
def test_debug_print(self):
file_list = FileList()
with captured_stdout() as stdout:
file_list.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), '')
+ self.assertEqual(stdout.read(), '')
debug.DEBUG = True
try:
with captured_stdout() as stdout:
file_list.debug_print('xxx')
stdout.seek(0)
- self.assertEquals(stdout.read(), 'xxx\n')
+ self.assertEqual(stdout.read(), 'xxx\n')
finally:
debug.DEBUG = False
diff --git a/lib-python/2.7.0/distutils/tests/test_install.py b/lib-python/2.7/distutils/tests/test_install.py
rename from lib-python/2.7.0/distutils/tests/test_install.py
rename to lib-python/2.7/distutils/tests/test_install.py
diff --git a/lib-python/2.7.0/distutils/tests/test_install_data.py b/lib-python/2.7/distutils/tests/test_install_data.py
rename from lib-python/2.7.0/distutils/tests/test_install_data.py
rename to lib-python/2.7/distutils/tests/test_install_data.py
--- a/lib-python/2.7.0/distutils/tests/test_install_data.py
+++ b/lib-python/2.7/distutils/tests/test_install_data.py
@@ -27,14 +27,14 @@
self.write_file(two, 'xxx')
cmd.data_files = [one, (inst2, [two])]
- self.assertEquals(cmd.get_inputs(), [one, (inst2, [two])])
+ self.assertEqual(cmd.get_inputs(), [one, (inst2, [two])])
# let's run the command
cmd.ensure_finalized()
cmd.run()
# let's check the result
- self.assertEquals(len(cmd.get_outputs()), 2)
+ self.assertEqual(len(cmd.get_outputs()), 2)
rtwo = os.path.split(two)[-1]
self.assertTrue(os.path.exists(os.path.join(inst2, rtwo)))
rone = os.path.split(one)[-1]
@@ -47,7 +47,7 @@
cmd.run()
# let's check the result
- self.assertEquals(len(cmd.get_outputs()), 2)
+ self.assertEqual(len(cmd.get_outputs()), 2)
self.assertTrue(os.path.exists(os.path.join(inst2, rtwo)))
self.assertTrue(os.path.exists(os.path.join(inst, rone)))
cmd.outfiles = []
@@ -65,7 +65,7 @@
cmd.run()
# let's check the result
- self.assertEquals(len(cmd.get_outputs()), 4)
+ self.assertEqual(len(cmd.get_outputs()), 4)
self.assertTrue(os.path.exists(os.path.join(inst2, rtwo)))
self.assertTrue(os.path.exists(os.path.join(inst, rone)))
diff --git a/lib-python/2.7.0/distutils/tests/test_install_headers.py b/lib-python/2.7/distutils/tests/test_install_headers.py
rename from lib-python/2.7.0/distutils/tests/test_install_headers.py
rename to lib-python/2.7/distutils/tests/test_install_headers.py
--- a/lib-python/2.7.0/distutils/tests/test_install_headers.py
+++ b/lib-python/2.7/distutils/tests/test_install_headers.py
@@ -23,7 +23,7 @@
pkg_dir, dist = self.create_dist(headers=headers)
cmd = install_headers(dist)
- self.assertEquals(cmd.get_inputs(), headers)
+ self.assertEqual(cmd.get_inputs(), headers)
# let's run the command
cmd.install_dir = os.path.join(pkg_dir, 'inst')
@@ -31,7 +31,7 @@
cmd.run()
# let's check the results
- self.assertEquals(len(cmd.get_outputs()), 2)
+ self.assertEqual(len(cmd.get_outputs()), 2)
def test_suite():
return unittest.makeSuite(InstallHeadersTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_install_lib.py b/lib-python/2.7/distutils/tests/test_install_lib.py
rename from lib-python/2.7.0/distutils/tests/test_install_lib.py
rename to lib-python/2.7/distutils/tests/test_install_lib.py
--- a/lib-python/2.7.0/distutils/tests/test_install_lib.py
+++ b/lib-python/2.7/distutils/tests/test_install_lib.py
@@ -18,8 +18,8 @@
cmd = install_lib(dist)
cmd.finalize_options()
- self.assertEquals(cmd.compile, 1)
- self.assertEquals(cmd.optimize, 0)
+ self.assertEqual(cmd.compile, 1)
+ self.assertEqual(cmd.optimize, 0)
# optimize must be 0, 1, or 2
cmd.optimize = 'foo'
@@ -29,7 +29,7 @@
cmd.optimize = '2'
cmd.finalize_options()
- self.assertEquals(cmd.optimize, 2)
+ self.assertEqual(cmd.optimize, 2)
def _setup_byte_compile(self):
pkg_dir, dist = self.create_dist()
@@ -81,7 +81,7 @@
cmd.distribution.script_name = 'setup.py'
# get_input should return 2 elements
- self.assertEquals(len(cmd.get_inputs()), 2)
+ self.assertEqual(len(cmd.get_inputs()), 2)
def test_dont_write_bytecode(self):
# makes sure byte_compile is not used
diff --git a/lib-python/2.7.0/distutils/tests/test_install_scripts.py b/lib-python/2.7/distutils/tests/test_install_scripts.py
rename from lib-python/2.7.0/distutils/tests/test_install_scripts.py
rename to lib-python/2.7/distutils/tests/test_install_scripts.py
--- a/lib-python/2.7.0/distutils/tests/test_install_scripts.py
+++ b/lib-python/2.7/distutils/tests/test_install_scripts.py
@@ -42,8 +42,10 @@
def write_script(name, text):
expected.append(name)
f = open(os.path.join(source, name), "w")
- f.write(text)
- f.close()
+ try:
+ f.write(text)
+ finally:
+ f.close()
write_script("script1.py", ("#! /usr/bin/env python2.3\n"
"# bogus script w/ Python sh-bang\n"
diff --git a/lib-python/2.7.0/distutils/tests/test_msvc9compiler.py b/lib-python/2.7/distutils/tests/test_msvc9compiler.py
rename from lib-python/2.7.0/distutils/tests/test_msvc9compiler.py
rename to lib-python/2.7/distutils/tests/test_msvc9compiler.py
--- a/lib-python/2.7.0/distutils/tests/test_msvc9compiler.py
+++ b/lib-python/2.7/distutils/tests/test_msvc9compiler.py
@@ -103,7 +103,7 @@
import _winreg
HKCU = _winreg.HKEY_CURRENT_USER
keys = Reg.read_keys(HKCU, 'xxxx')
- self.assertEquals(keys, None)
+ self.assertEqual(keys, None)
keys = Reg.read_keys(HKCU, r'Control Panel')
self.assertTrue('Desktop' in keys)
@@ -113,20 +113,24 @@
tempdir = self.mkdtemp()
manifest = os.path.join(tempdir, 'manifest')
f = open(manifest, 'w')
- f.write(_MANIFEST)
- f.close()
+ try:
+ f.write(_MANIFEST)
+ finally:
+ f.close()
compiler = MSVCCompiler()
compiler._remove_visual_c_ref(manifest)
# see what we got
f = open(manifest)
- # removing trailing spaces
- content = '\n'.join([line.rstrip() for line in f.readlines()])
- f.close()
+ try:
+ # removing trailing spaces
+ content = '\n'.join([line.rstrip() for line in f.readlines()])
+ finally:
+ f.close()
# makes sure the manifest was properly cleaned
- self.assertEquals(content, _CLEANED_MANIFEST)
+ self.assertEqual(content, _CLEANED_MANIFEST)
def test_suite():
diff --git a/lib-python/2.7.0/distutils/tests/test_register.py b/lib-python/2.7/distutils/tests/test_register.py
rename from lib-python/2.7.0/distutils/tests/test_register.py
rename to lib-python/2.7/distutils/tests/test_register.py
--- a/lib-python/2.7.0/distutils/tests/test_register.py
+++ b/lib-python/2.7/distutils/tests/test_register.py
@@ -119,8 +119,12 @@
self.assertTrue(os.path.exists(self.rc))
# with the content similar to WANTED_PYPIRC
- content = open(self.rc).read()
- self.assertEquals(content, WANTED_PYPIRC)
+ f = open(self.rc)
+ try:
+ content = f.read()
+ self.assertEqual(content, WANTED_PYPIRC)
+ finally:
+ f.close()
# now let's make sure the .pypirc file generated
# really works : we shouldn't be asked anything
@@ -137,7 +141,7 @@
self.assertTrue(self.conn.reqs, 2)
req1 = dict(self.conn.reqs[0].headers)
req2 = dict(self.conn.reqs[1].headers)
- self.assertEquals(req2['Content-length'], req1['Content-length'])
+ self.assertEqual(req2['Content-length'], req1['Content-length'])
self.assertTrue('xxx' in self.conn.reqs[1].data)
def test_password_not_in_file(self):
@@ -150,7 +154,7 @@
# dist.password should be set
# therefore used afterwards by other commands
- self.assertEquals(cmd.distribution.password, 'password')
+ self.assertEqual(cmd.distribution.password, 'password')
def test_registering(self):
# this test runs choice 2
@@ -167,7 +171,7 @@
self.assertTrue(self.conn.reqs, 1)
req = self.conn.reqs[0]
headers = dict(req.headers)
- self.assertEquals(headers['Content-length'], '608')
+ self.assertEqual(headers['Content-length'], '608')
self.assertTrue('tarek' in req.data)
def test_password_reset(self):
@@ -185,7 +189,7 @@
self.assertTrue(self.conn.reqs, 1)
req = self.conn.reqs[0]
headers = dict(req.headers)
- self.assertEquals(headers['Content-length'], '290')
+ self.assertEqual(headers['Content-length'], '290')
self.assertTrue('tarek' in req.data)
def test_strict(self):
@@ -248,7 +252,7 @@
with check_warnings() as w:
warnings.simplefilter("always")
cmd.check_metadata()
- self.assertEquals(len(w.warnings), 1)
+ self.assertEqual(len(w.warnings), 1)
def test_suite():
return unittest.makeSuite(RegisterTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_sdist.py b/lib-python/2.7/distutils/tests/test_sdist.py
rename from lib-python/2.7.0/distutils/tests/test_sdist.py
rename to lib-python/2.7/distutils/tests/test_sdist.py
--- a/lib-python/2.7.0/distutils/tests/test_sdist.py
+++ b/lib-python/2.7/distutils/tests/test_sdist.py
@@ -127,7 +127,7 @@
# now let's check what we have
dist_folder = join(self.tmp_dir, 'dist')
files = os.listdir(dist_folder)
- self.assertEquals(files, ['fake-1.0.zip'])
+ self.assertEqual(files, ['fake-1.0.zip'])
zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
try:
@@ -136,7 +136,7 @@
zip_file.close()
# making sure everything has been pruned correctly
- self.assertEquals(len(content), 4)
+ self.assertEqual(len(content), 4)
@unittest.skipUnless(zlib, "requires zlib")
def test_make_distribution(self):
@@ -158,8 +158,7 @@
dist_folder = join(self.tmp_dir, 'dist')
result = os.listdir(dist_folder)
result.sort()
- self.assertEquals(result,
- ['fake-1.0.tar', 'fake-1.0.tar.gz'] )
+ self.assertEqual(result, ['fake-1.0.tar', 'fake-1.0.tar.gz'] )
os.remove(join(dist_folder, 'fake-1.0.tar'))
os.remove(join(dist_folder, 'fake-1.0.tar.gz'))
@@ -172,8 +171,7 @@
result = os.listdir(dist_folder)
result.sort()
- self.assertEquals(result,
- ['fake-1.0.tar', 'fake-1.0.tar.gz'])
+ self.assertEqual(result, ['fake-1.0.tar', 'fake-1.0.tar.gz'])
@unittest.skipUnless(zlib, "requires zlib")
def test_add_defaults(self):
@@ -222,7 +220,7 @@
# now let's check what we have
dist_folder = join(self.tmp_dir, 'dist')
files = os.listdir(dist_folder)
- self.assertEquals(files, ['fake-1.0.zip'])
+ self.assertEqual(files, ['fake-1.0.zip'])
zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
try:
@@ -231,11 +229,15 @@
zip_file.close()
# making sure everything was added
- self.assertEquals(len(content), 11)
+ self.assertEqual(len(content), 11)
# checking the MANIFEST
- manifest = open(join(self.tmp_dir, 'MANIFEST')).read()
- self.assertEquals(manifest, MANIFEST % {'sep': os.sep})
+ f = open(join(self.tmp_dir, 'MANIFEST'))
+ try:
+ manifest = f.read()
+ self.assertEqual(manifest, MANIFEST % {'sep': os.sep})
+ finally:
+ f.close()
@unittest.skipUnless(zlib, "requires zlib")
def test_metadata_check_option(self):
@@ -247,7 +249,7 @@
cmd.ensure_finalized()
cmd.run()
warnings = self.get_logs(WARN)
- self.assertEquals(len(warnings), 2)
+ self.assertEqual(len(warnings), 2)
# trying with a complete set of metadata
self.clear_logs()
@@ -256,7 +258,7 @@
cmd.metadata_check = 0
cmd.run()
warnings = self.get_logs(WARN)
- self.assertEquals(len(warnings), 0)
+ self.assertEqual(len(warnings), 0)
def test_check_metadata_deprecated(self):
# makes sure make_metadata is deprecated
@@ -264,7 +266,7 @@
with check_warnings() as w:
warnings.simplefilter("always")
cmd.check_metadata()
- self.assertEquals(len(w.warnings), 1)
+ self.assertEqual(len(w.warnings), 1)
def test_show_formats(self):
with captured_stdout() as stdout:
@@ -274,7 +276,7 @@
num_formats = len(ARCHIVE_FORMATS.keys())
output = [line for line in stdout.getvalue().split('\n')
if line.strip().startswith('--formats=')]
- self.assertEquals(len(output), num_formats)
+ self.assertEqual(len(output), num_formats)
def test_finalize_options(self):
@@ -282,9 +284,9 @@
cmd.finalize_options()
# default options set by finalize
- self.assertEquals(cmd.manifest, 'MANIFEST')
- self.assertEquals(cmd.template, 'MANIFEST.in')
- self.assertEquals(cmd.dist_dir, 'dist')
+ self.assertEqual(cmd.manifest, 'MANIFEST')
+ self.assertEqual(cmd.template, 'MANIFEST.in')
+ self.assertEqual(cmd.dist_dir, 'dist')
# formats has to be a string splitable on (' ', ',') or
# a stringlist
@@ -321,8 +323,8 @@
archive = tarfile.open(archive_name)
try:
for member in archive.getmembers():
- self.assertEquals(member.uid, 0)
- self.assertEquals(member.gid, 0)
+ self.assertEqual(member.uid, 0)
+ self.assertEqual(member.gid, 0)
finally:
archive.close()
@@ -343,7 +345,7 @@
# rights (see #7408)
try:
for member in archive.getmembers():
- self.assertEquals(member.uid, os.getuid())
+ self.assertEqual(member.uid, os.getuid())
finally:
archive.close()
@@ -365,7 +367,7 @@
finally:
f.close()
- self.assertEquals(len(manifest), 5)
+ self.assertEqual(len(manifest), 5)
# adding a file
self.write_file((self.tmp_dir, 'somecode', 'doc2.txt'), '#')
@@ -385,7 +387,7 @@
f.close()
# do we have the new file in MANIFEST ?
- self.assertEquals(len(manifest2), 6)
+ self.assertEqual(len(manifest2), 6)
self.assertIn('doc2.txt', manifest2[-1])
def test_manifest_marker(self):
diff --git a/lib-python/2.7.0/distutils/tests/test_spawn.py b/lib-python/2.7/distutils/tests/test_spawn.py
rename from lib-python/2.7.0/distutils/tests/test_spawn.py
rename to lib-python/2.7/distutils/tests/test_spawn.py
--- a/lib-python/2.7.0/distutils/tests/test_spawn.py
+++ b/lib-python/2.7/distutils/tests/test_spawn.py
@@ -20,7 +20,7 @@
(['nochange', 'nospace'],
['nochange', 'nospace'])):
res = _nt_quote_args(args)
- self.assertEquals(res, wanted)
+ self.assertEqual(res, wanted)
@unittest.skipUnless(os.name in ('nt', 'posix'),
diff --git a/lib-python/2.7.0/distutils/tests/test_sysconfig.py b/lib-python/2.7/distutils/tests/test_sysconfig.py
rename from lib-python/2.7.0/distutils/tests/test_sysconfig.py
rename to lib-python/2.7/distutils/tests/test_sysconfig.py
--- a/lib-python/2.7.0/distutils/tests/test_sysconfig.py
+++ b/lib-python/2.7/distutils/tests/test_sysconfig.py
@@ -36,7 +36,7 @@
sysconfig.get_python_lib(prefix=TESTFN))
_sysconfig = __import__('sysconfig')
res = sysconfig.get_python_lib(True, True)
- self.assertEquals(_sysconfig.get_path('platstdlib'), res)
+ self.assertEqual(_sysconfig.get_path('platstdlib'), res)
def test_get_python_inc(self):
inc_dir = sysconfig.get_python_inc()
@@ -50,22 +50,26 @@
def test_parse_makefile_base(self):
self.makefile = test.test_support.TESTFN
fd = open(self.makefile, 'w')
- fd.write(r"CONFIG_ARGS= '--arg1=optarg1' 'ENV=LIB'" '\n')
- fd.write('VAR=$OTHER\nOTHER=foo')
- fd.close()
+ try:
+ fd.write(r"CONFIG_ARGS= '--arg1=optarg1' 'ENV=LIB'" '\n')
+ fd.write('VAR=$OTHER\nOTHER=foo')
+ finally:
+ fd.close()
d = sysconfig.parse_makefile(self.makefile)
- self.assertEquals(d, {'CONFIG_ARGS': "'--arg1=optarg1' 'ENV=LIB'",
- 'OTHER': 'foo'})
+ self.assertEqual(d, {'CONFIG_ARGS': "'--arg1=optarg1' 'ENV=LIB'",
+ 'OTHER': 'foo'})
def test_parse_makefile_literal_dollar(self):
self.makefile = test.test_support.TESTFN
fd = open(self.makefile, 'w')
- fd.write(r"CONFIG_ARGS= '--arg1=optarg1' 'ENV=\$$LIB'" '\n')
- fd.write('VAR=$OTHER\nOTHER=foo')
- fd.close()
+ try:
+ fd.write(r"CONFIG_ARGS= '--arg1=optarg1' 'ENV=\$$LIB'" '\n')
+ fd.write('VAR=$OTHER\nOTHER=foo')
+ finally:
+ fd.close()
d = sysconfig.parse_makefile(self.makefile)
- self.assertEquals(d, {'CONFIG_ARGS': r"'--arg1=optarg1' 'ENV=\$LIB'",
- 'OTHER': 'foo'})
+ self.assertEqual(d, {'CONFIG_ARGS': r"'--arg1=optarg1' 'ENV=\$LIB'",
+ 'OTHER': 'foo'})
def test_suite():
diff --git a/lib-python/2.7.0/distutils/tests/test_text_file.py b/lib-python/2.7/distutils/tests/test_text_file.py
rename from lib-python/2.7.0/distutils/tests/test_text_file.py
rename to lib-python/2.7/distutils/tests/test_text_file.py
--- a/lib-python/2.7.0/distutils/tests/test_text_file.py
+++ b/lib-python/2.7/distutils/tests/test_text_file.py
@@ -48,7 +48,7 @@
def test_input(count, description, file, expected_result):
result = file.readlines()
- self.assertEquals(result, expected_result)
+ self.assertEqual(result, expected_result)
tmpdir = self.mkdtemp()
filename = os.path.join(tmpdir, "test.txt")
@@ -58,28 +58,46 @@
finally:
out_file.close()
- in_file = TextFile (filename, strip_comments=0, skip_blanks=0,
- lstrip_ws=0, rstrip_ws=0)
- test_input (1, "no processing", in_file, result1)
+ in_file = TextFile(filename, strip_comments=0, skip_blanks=0,
+ lstrip_ws=0, rstrip_ws=0)
+ try:
+ test_input(1, "no processing", in_file, result1)
+ finally:
+ in_file.close()
- in_file = TextFile (filename, strip_comments=1, skip_blanks=0,
- lstrip_ws=0, rstrip_ws=0)
- test_input (2, "strip comments", in_file, result2)
+ in_file = TextFile(filename, strip_comments=1, skip_blanks=0,
+ lstrip_ws=0, rstrip_ws=0)
+ try:
+ test_input(2, "strip comments", in_file, result2)
+ finally:
+ in_file.close()
- in_file = TextFile (filename, strip_comments=0, skip_blanks=1,
- lstrip_ws=0, rstrip_ws=0)
- test_input (3, "strip blanks", in_file, result3)
+ in_file = TextFile(filename, strip_comments=0, skip_blanks=1,
+ lstrip_ws=0, rstrip_ws=0)
+ try:
+ test_input(3, "strip blanks", in_file, result3)
+ finally:
+ in_file.close()
- in_file = TextFile (filename)
- test_input (4, "default processing", in_file, result4)
+ in_file = TextFile(filename)
+ try:
+ test_input(4, "default processing", in_file, result4)
+ finally:
+ in_file.close()
- in_file = TextFile (filename, strip_comments=1, skip_blanks=1,
- join_lines=1, rstrip_ws=1)
- test_input (5, "join lines without collapsing", in_file, result5)
+ in_file = TextFile(filename, strip_comments=1, skip_blanks=1,
+ join_lines=1, rstrip_ws=1)
+ try:
+ test_input(5, "join lines without collapsing", in_file, result5)
+ finally:
+ in_file.close()
- in_file = TextFile (filename, strip_comments=1, skip_blanks=1,
- join_lines=1, rstrip_ws=1, collapse_join=1)
- test_input (6, "join lines with collapsing", in_file, result6)
+ in_file = TextFile(filename, strip_comments=1, skip_blanks=1,
+ join_lines=1, rstrip_ws=1, collapse_join=1)
+ try:
+ test_input(6, "join lines with collapsing", in_file, result6)
+ finally:
+ in_file.close()
def test_suite():
return unittest.makeSuite(TextFileTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_unixccompiler.py b/lib-python/2.7/distutils/tests/test_unixccompiler.py
rename from lib-python/2.7.0/distutils/tests/test_unixccompiler.py
rename to lib-python/2.7/distutils/tests/test_unixccompiler.py
diff --git a/lib-python/2.7.0/distutils/tests/test_upload.py b/lib-python/2.7/distutils/tests/test_upload.py
rename from lib-python/2.7.0/distutils/tests/test_upload.py
rename to lib-python/2.7/distutils/tests/test_upload.py
--- a/lib-python/2.7.0/distutils/tests/test_upload.py
+++ b/lib-python/2.7/distutils/tests/test_upload.py
@@ -80,7 +80,7 @@
for attr, waited in (('username', 'me'), ('password', 'secret'),
('realm', 'pypi'),
('repository', 'http://pypi.python.org/pypi')):
- self.assertEquals(getattr(cmd, attr), waited)
+ self.assertEqual(getattr(cmd, attr), waited)
def test_saved_password(self):
# file with no password
@@ -90,14 +90,14 @@
dist = Distribution()
cmd = upload(dist)
cmd.finalize_options()
- self.assertEquals(cmd.password, None)
+ self.assertEqual(cmd.password, None)
# make sure we get it as well, if another command
# initialized it at the dist level
dist.password = 'xxx'
cmd = upload(dist)
cmd.finalize_options()
- self.assertEquals(cmd.password, 'xxx')
+ self.assertEqual(cmd.password, 'xxx')
def test_upload(self):
tmp = self.mkdtemp()
@@ -116,11 +116,11 @@
# what did we send ?
self.assertIn('dédé', self.last_open.req.data)
headers = dict(self.last_open.req.headers)
- self.assertEquals(headers['Content-length'], '2085')
+ self.assertEqual(headers['Content-length'], '2085')
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
- self.assertEquals(self.last_open.req.get_method(), 'POST')
- self.assertEquals(self.last_open.req.get_full_url(),
- 'http://pypi.python.org/pypi')
+ self.assertEqual(self.last_open.req.get_method(), 'POST')
+ self.assertEqual(self.last_open.req.get_full_url(),
+ 'http://pypi.python.org/pypi')
self.assertTrue('xxx' in self.last_open.req.data)
auth = self.last_open.req.headers['Authorization']
self.assertFalse('\n' in auth)
diff --git a/lib-python/2.7.0/distutils/tests/test_util.py b/lib-python/2.7/distutils/tests/test_util.py
rename from lib-python/2.7.0/distutils/tests/test_util.py
rename to lib-python/2.7/distutils/tests/test_util.py
diff --git a/lib-python/2.7.0/distutils/tests/test_version.py b/lib-python/2.7/distutils/tests/test_version.py
rename from lib-python/2.7.0/distutils/tests/test_version.py
rename to lib-python/2.7/distutils/tests/test_version.py
--- a/lib-python/2.7.0/distutils/tests/test_version.py
+++ b/lib-python/2.7/distutils/tests/test_version.py
@@ -7,12 +7,12 @@
def test_prerelease(self):
version = StrictVersion('1.2.3a1')
- self.assertEquals(version.version, (1, 2, 3))
- self.assertEquals(version.prerelease, ('a', 1))
- self.assertEquals(str(version), '1.2.3a1')
+ self.assertEqual(version.version, (1, 2, 3))
+ self.assertEqual(version.prerelease, ('a', 1))
+ self.assertEqual(str(version), '1.2.3a1')
version = StrictVersion('1.2.0')
- self.assertEquals(str(version), '1.2')
+ self.assertEqual(str(version), '1.2')
def test_cmp_strict(self):
versions = (('1.5.1', '1.5.2b2', -1),
@@ -41,9 +41,9 @@
raise AssertionError(("cmp(%s, %s) "
"shouldn't raise ValueError")
% (v1, v2))
- self.assertEquals(res, wanted,
- 'cmp(%s, %s) should be %s, got %s' %
- (v1, v2, wanted, res))
+ self.assertEqual(res, wanted,
+ 'cmp(%s, %s) should be %s, got %s' %
+ (v1, v2, wanted, res))
def test_cmp(self):
@@ -59,9 +59,9 @@
for v1, v2, wanted in versions:
res = LooseVersion(v1).__cmp__(LooseVersion(v2))
- self.assertEquals(res, wanted,
- 'cmp(%s, %s) should be %s, got %s' %
- (v1, v2, wanted, res))
+ self.assertEqual(res, wanted,
+ 'cmp(%s, %s) should be %s, got %s' %
+ (v1, v2, wanted, res))
def test_suite():
return unittest.makeSuite(VersionTestCase)
diff --git a/lib-python/2.7.0/distutils/tests/test_versionpredicate.py b/lib-python/2.7/distutils/tests/test_versionpredicate.py
rename from lib-python/2.7.0/distutils/tests/test_versionpredicate.py
rename to lib-python/2.7/distutils/tests/test_versionpredicate.py
diff --git a/lib-python/2.7.0/distutils/text_file.py b/lib-python/2.7/distutils/text_file.py
rename from lib-python/2.7.0/distutils/text_file.py
rename to lib-python/2.7/distutils/text_file.py
--- a/lib-python/2.7.0/distutils/text_file.py
+++ b/lib-python/2.7/distutils/text_file.py
@@ -4,7 +4,7 @@
that (optionally) takes care of stripping comments, ignoring blank
lines, and joining lines with backslashes."""
-__revision__ = "$Id: text_file.py 76956 2009-12-21 01:22:46Z tarek.ziade $"
+__revision__ = "$Id$"
import sys
diff --git a/lib-python/2.7.0/distutils/unixccompiler.py b/lib-python/2.7/distutils/unixccompiler.py
rename from lib-python/2.7.0/distutils/unixccompiler.py
rename to lib-python/2.7/distutils/unixccompiler.py
--- a/lib-python/2.7.0/distutils/unixccompiler.py
+++ b/lib-python/2.7/distutils/unixccompiler.py
@@ -13,7 +13,7 @@
* link shared library handled by 'cc -shared'
"""
-__revision__ = "$Id: unixccompiler.py 82272 2010-06-27 12:36:16Z ronald.oussoren $"
+__revision__ = "$Id$"
import os, sys, re
from types import StringType, NoneType
diff --git a/lib-python/2.7.0/distutils/util.py b/lib-python/2.7/distutils/util.py
rename from lib-python/2.7.0/distutils/util.py
rename to lib-python/2.7/distutils/util.py
--- a/lib-python/2.7.0/distutils/util.py
+++ b/lib-python/2.7/distutils/util.py
@@ -4,7 +4,7 @@
one of the other *util.py modules.
"""
-__revision__ = "$Id: util.py 82791 2010-07-11 08:52:52Z ronald.oussoren $"
+__revision__ = "$Id$"
import sys, os, string, re
from distutils.errors import DistutilsPlatformError
@@ -116,13 +116,15 @@
# behaviour.
pass
else:
- m = re.search(
- r'<key>ProductUserVisibleVersion</key>\s*' +
- r'<string>(.*?)</string>', f.read())
- f.close()
- if m is not None:
- macrelease = '.'.join(m.group(1).split('.')[:2])
- # else: fall back to the default behaviour
+ try:
+ m = re.search(
+ r'<key>ProductUserVisibleVersion</key>\s*' +
+ r'<string>(.*?)</string>', f.read())
+ if m is not None:
+ macrelease = '.'.join(m.group(1).split('.')[:2])
+ # else: fall back to the default behaviour
+ finally:
+ f.close()
if not macver:
macver = macrelease
diff --git a/lib-python/2.7.0/distutils/version.py b/lib-python/2.7/distutils/version.py
rename from lib-python/2.7.0/distutils/version.py
rename to lib-python/2.7/distutils/version.py
--- a/lib-python/2.7.0/distutils/version.py
+++ b/lib-python/2.7/distutils/version.py
@@ -4,7 +4,7 @@
# Implements multiple version numbering conventions for the
# Python Module Distribution Utilities.
#
-# $Id: version.py 70642 2009-03-28 00:48:48Z georg.brandl $
+# $Id$
#
"""Provides classes to represent module version numbers (one class for
diff --git a/lib-python/2.7.0/distutils/versionpredicate.py b/lib-python/2.7/distutils/versionpredicate.py
rename from lib-python/2.7.0/distutils/versionpredicate.py
rename to lib-python/2.7/distutils/versionpredicate.py
diff --git a/lib-python/2.7.0/doctest.py b/lib-python/2.7/doctest.py
rename from lib-python/2.7.0/doctest.py
rename to lib-python/2.7/doctest.py
diff --git a/lib-python/2.7.0/dumbdbm.py b/lib-python/2.7/dumbdbm.py
rename from lib-python/2.7.0/dumbdbm.py
rename to lib-python/2.7/dumbdbm.py
diff --git a/lib-python/2.7.0/dummy_thread.py b/lib-python/2.7/dummy_thread.py
rename from lib-python/2.7.0/dummy_thread.py
rename to lib-python/2.7/dummy_thread.py
diff --git a/lib-python/2.7.0/dummy_threading.py b/lib-python/2.7/dummy_threading.py
rename from lib-python/2.7.0/dummy_threading.py
rename to lib-python/2.7/dummy_threading.py
diff --git a/lib-python/2.7.0/email/__init__.py b/lib-python/2.7/email/__init__.py
rename from lib-python/2.7.0/email/__init__.py
rename to lib-python/2.7/email/__init__.py
diff --git a/lib-python/2.7.0/email/_parseaddr.py b/lib-python/2.7/email/_parseaddr.py
rename from lib-python/2.7.0/email/_parseaddr.py
rename to lib-python/2.7/email/_parseaddr.py
diff --git a/lib-python/2.7.0/email/base64mime.py b/lib-python/2.7/email/base64mime.py
rename from lib-python/2.7.0/email/base64mime.py
rename to lib-python/2.7/email/base64mime.py
diff --git a/lib-python/2.7.0/email/charset.py b/lib-python/2.7/email/charset.py
rename from lib-python/2.7.0/email/charset.py
rename to lib-python/2.7/email/charset.py
diff --git a/lib-python/2.7.0/email/encoders.py b/lib-python/2.7/email/encoders.py
rename from lib-python/2.7.0/email/encoders.py
rename to lib-python/2.7/email/encoders.py
diff --git a/lib-python/2.7.0/email/errors.py b/lib-python/2.7/email/errors.py
rename from lib-python/2.7.0/email/errors.py
rename to lib-python/2.7/email/errors.py
diff --git a/lib-python/2.7.0/email/feedparser.py b/lib-python/2.7/email/feedparser.py
rename from lib-python/2.7.0/email/feedparser.py
rename to lib-python/2.7/email/feedparser.py
diff --git a/lib-python/2.7.0/email/generator.py b/lib-python/2.7/email/generator.py
rename from lib-python/2.7.0/email/generator.py
rename to lib-python/2.7/email/generator.py
diff --git a/lib-python/2.7.0/email/header.py b/lib-python/2.7/email/header.py
rename from lib-python/2.7.0/email/header.py
rename to lib-python/2.7/email/header.py
diff --git a/lib-python/2.7.0/email/iterators.py b/lib-python/2.7/email/iterators.py
rename from lib-python/2.7.0/email/iterators.py
rename to lib-python/2.7/email/iterators.py
diff --git a/lib-python/2.7.0/email/message.py b/lib-python/2.7/email/message.py
rename from lib-python/2.7.0/email/message.py
rename to lib-python/2.7/email/message.py
diff --git a/lib-python/2.7.0/email/mime/__init__.py b/lib-python/2.7/email/mime/__init__.py
rename from lib-python/2.7.0/email/mime/__init__.py
rename to lib-python/2.7/email/mime/__init__.py
diff --git a/lib-python/2.7.0/email/mime/application.py b/lib-python/2.7/email/mime/application.py
rename from lib-python/2.7.0/email/mime/application.py
rename to lib-python/2.7/email/mime/application.py
diff --git a/lib-python/2.7.0/email/mime/audio.py b/lib-python/2.7/email/mime/audio.py
rename from lib-python/2.7.0/email/mime/audio.py
rename to lib-python/2.7/email/mime/audio.py
diff --git a/lib-python/2.7.0/email/mime/base.py b/lib-python/2.7/email/mime/base.py
rename from lib-python/2.7.0/email/mime/base.py
rename to lib-python/2.7/email/mime/base.py
diff --git a/lib-python/2.7.0/email/mime/image.py b/lib-python/2.7/email/mime/image.py
rename from lib-python/2.7.0/email/mime/image.py
rename to lib-python/2.7/email/mime/image.py
diff --git a/lib-python/2.7.0/email/mime/message.py b/lib-python/2.7/email/mime/message.py
rename from lib-python/2.7.0/email/mime/message.py
rename to lib-python/2.7/email/mime/message.py
diff --git a/lib-python/2.7.0/email/mime/multipart.py b/lib-python/2.7/email/mime/multipart.py
rename from lib-python/2.7.0/email/mime/multipart.py
rename to lib-python/2.7/email/mime/multipart.py
diff --git a/lib-python/2.7.0/email/mime/nonmultipart.py b/lib-python/2.7/email/mime/nonmultipart.py
rename from lib-python/2.7.0/email/mime/nonmultipart.py
rename to lib-python/2.7/email/mime/nonmultipart.py
diff --git a/lib-python/2.7.0/email/mime/text.py b/lib-python/2.7/email/mime/text.py
rename from lib-python/2.7.0/email/mime/text.py
rename to lib-python/2.7/email/mime/text.py
diff --git a/lib-python/2.7.0/email/parser.py b/lib-python/2.7/email/parser.py
rename from lib-python/2.7.0/email/parser.py
rename to lib-python/2.7/email/parser.py
diff --git a/lib-python/2.7.0/email/quoprimime.py b/lib-python/2.7/email/quoprimime.py
rename from lib-python/2.7.0/email/quoprimime.py
rename to lib-python/2.7/email/quoprimime.py
diff --git a/lib-python/2.7.0/email/test/__init__.py b/lib-python/2.7/email/test/__init__.py
rename from lib-python/2.7.0/email/test/__init__.py
rename to lib-python/2.7/email/test/__init__.py
diff --git a/lib-python/2.7.0/email/test/data/PyBanner048.gif b/lib-python/2.7/email/test/data/PyBanner048.gif
rename from lib-python/2.7.0/email/test/data/PyBanner048.gif
rename to lib-python/2.7/email/test/data/PyBanner048.gif
diff --git a/lib-python/2.7.0/email/test/data/audiotest.au b/lib-python/2.7/email/test/data/audiotest.au
rename from lib-python/2.7.0/email/test/data/audiotest.au
rename to lib-python/2.7/email/test/data/audiotest.au
diff --git a/lib-python/2.7.0/email/test/data/msg_01.txt b/lib-python/2.7/email/test/data/msg_01.txt
rename from lib-python/2.7.0/email/test/data/msg_01.txt
rename to lib-python/2.7/email/test/data/msg_01.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_02.txt b/lib-python/2.7/email/test/data/msg_02.txt
rename from lib-python/2.7.0/email/test/data/msg_02.txt
rename to lib-python/2.7/email/test/data/msg_02.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_03.txt b/lib-python/2.7/email/test/data/msg_03.txt
rename from lib-python/2.7.0/email/test/data/msg_03.txt
rename to lib-python/2.7/email/test/data/msg_03.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_04.txt b/lib-python/2.7/email/test/data/msg_04.txt
rename from lib-python/2.7.0/email/test/data/msg_04.txt
rename to lib-python/2.7/email/test/data/msg_04.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_05.txt b/lib-python/2.7/email/test/data/msg_05.txt
rename from lib-python/2.7.0/email/test/data/msg_05.txt
rename to lib-python/2.7/email/test/data/msg_05.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_06.txt b/lib-python/2.7/email/test/data/msg_06.txt
rename from lib-python/2.7.0/email/test/data/msg_06.txt
rename to lib-python/2.7/email/test/data/msg_06.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_07.txt b/lib-python/2.7/email/test/data/msg_07.txt
rename from lib-python/2.7.0/email/test/data/msg_07.txt
rename to lib-python/2.7/email/test/data/msg_07.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_08.txt b/lib-python/2.7/email/test/data/msg_08.txt
rename from lib-python/2.7.0/email/test/data/msg_08.txt
rename to lib-python/2.7/email/test/data/msg_08.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_09.txt b/lib-python/2.7/email/test/data/msg_09.txt
rename from lib-python/2.7.0/email/test/data/msg_09.txt
rename to lib-python/2.7/email/test/data/msg_09.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_10.txt b/lib-python/2.7/email/test/data/msg_10.txt
rename from lib-python/2.7.0/email/test/data/msg_10.txt
rename to lib-python/2.7/email/test/data/msg_10.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_11.txt b/lib-python/2.7/email/test/data/msg_11.txt
rename from lib-python/2.7.0/email/test/data/msg_11.txt
rename to lib-python/2.7/email/test/data/msg_11.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_12.txt b/lib-python/2.7/email/test/data/msg_12.txt
rename from lib-python/2.7.0/email/test/data/msg_12.txt
rename to lib-python/2.7/email/test/data/msg_12.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_12a.txt b/lib-python/2.7/email/test/data/msg_12a.txt
rename from lib-python/2.7.0/email/test/data/msg_12a.txt
rename to lib-python/2.7/email/test/data/msg_12a.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_13.txt b/lib-python/2.7/email/test/data/msg_13.txt
rename from lib-python/2.7.0/email/test/data/msg_13.txt
rename to lib-python/2.7/email/test/data/msg_13.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_14.txt b/lib-python/2.7/email/test/data/msg_14.txt
rename from lib-python/2.7.0/email/test/data/msg_14.txt
rename to lib-python/2.7/email/test/data/msg_14.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_15.txt b/lib-python/2.7/email/test/data/msg_15.txt
rename from lib-python/2.7.0/email/test/data/msg_15.txt
rename to lib-python/2.7/email/test/data/msg_15.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_16.txt b/lib-python/2.7/email/test/data/msg_16.txt
rename from lib-python/2.7.0/email/test/data/msg_16.txt
rename to lib-python/2.7/email/test/data/msg_16.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_17.txt b/lib-python/2.7/email/test/data/msg_17.txt
rename from lib-python/2.7.0/email/test/data/msg_17.txt
rename to lib-python/2.7/email/test/data/msg_17.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_18.txt b/lib-python/2.7/email/test/data/msg_18.txt
rename from lib-python/2.7.0/email/test/data/msg_18.txt
rename to lib-python/2.7/email/test/data/msg_18.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_19.txt b/lib-python/2.7/email/test/data/msg_19.txt
rename from lib-python/2.7.0/email/test/data/msg_19.txt
rename to lib-python/2.7/email/test/data/msg_19.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_20.txt b/lib-python/2.7/email/test/data/msg_20.txt
rename from lib-python/2.7.0/email/test/data/msg_20.txt
rename to lib-python/2.7/email/test/data/msg_20.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_21.txt b/lib-python/2.7/email/test/data/msg_21.txt
rename from lib-python/2.7.0/email/test/data/msg_21.txt
rename to lib-python/2.7/email/test/data/msg_21.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_22.txt b/lib-python/2.7/email/test/data/msg_22.txt
rename from lib-python/2.7.0/email/test/data/msg_22.txt
rename to lib-python/2.7/email/test/data/msg_22.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_23.txt b/lib-python/2.7/email/test/data/msg_23.txt
rename from lib-python/2.7.0/email/test/data/msg_23.txt
rename to lib-python/2.7/email/test/data/msg_23.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_24.txt b/lib-python/2.7/email/test/data/msg_24.txt
rename from lib-python/2.7.0/email/test/data/msg_24.txt
rename to lib-python/2.7/email/test/data/msg_24.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_25.txt b/lib-python/2.7/email/test/data/msg_25.txt
rename from lib-python/2.7.0/email/test/data/msg_25.txt
rename to lib-python/2.7/email/test/data/msg_25.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_26.txt b/lib-python/2.7/email/test/data/msg_26.txt
rename from lib-python/2.7.0/email/test/data/msg_26.txt
rename to lib-python/2.7/email/test/data/msg_26.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_27.txt b/lib-python/2.7/email/test/data/msg_27.txt
rename from lib-python/2.7.0/email/test/data/msg_27.txt
rename to lib-python/2.7/email/test/data/msg_27.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_28.txt b/lib-python/2.7/email/test/data/msg_28.txt
rename from lib-python/2.7.0/email/test/data/msg_28.txt
rename to lib-python/2.7/email/test/data/msg_28.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_29.txt b/lib-python/2.7/email/test/data/msg_29.txt
rename from lib-python/2.7.0/email/test/data/msg_29.txt
rename to lib-python/2.7/email/test/data/msg_29.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_30.txt b/lib-python/2.7/email/test/data/msg_30.txt
rename from lib-python/2.7.0/email/test/data/msg_30.txt
rename to lib-python/2.7/email/test/data/msg_30.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_31.txt b/lib-python/2.7/email/test/data/msg_31.txt
rename from lib-python/2.7.0/email/test/data/msg_31.txt
rename to lib-python/2.7/email/test/data/msg_31.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_32.txt b/lib-python/2.7/email/test/data/msg_32.txt
rename from lib-python/2.7.0/email/test/data/msg_32.txt
rename to lib-python/2.7/email/test/data/msg_32.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_33.txt b/lib-python/2.7/email/test/data/msg_33.txt
rename from lib-python/2.7.0/email/test/data/msg_33.txt
rename to lib-python/2.7/email/test/data/msg_33.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_34.txt b/lib-python/2.7/email/test/data/msg_34.txt
rename from lib-python/2.7.0/email/test/data/msg_34.txt
rename to lib-python/2.7/email/test/data/msg_34.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_35.txt b/lib-python/2.7/email/test/data/msg_35.txt
rename from lib-python/2.7.0/email/test/data/msg_35.txt
rename to lib-python/2.7/email/test/data/msg_35.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_36.txt b/lib-python/2.7/email/test/data/msg_36.txt
rename from lib-python/2.7.0/email/test/data/msg_36.txt
rename to lib-python/2.7/email/test/data/msg_36.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_37.txt b/lib-python/2.7/email/test/data/msg_37.txt
rename from lib-python/2.7.0/email/test/data/msg_37.txt
rename to lib-python/2.7/email/test/data/msg_37.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_38.txt b/lib-python/2.7/email/test/data/msg_38.txt
rename from lib-python/2.7.0/email/test/data/msg_38.txt
rename to lib-python/2.7/email/test/data/msg_38.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_39.txt b/lib-python/2.7/email/test/data/msg_39.txt
rename from lib-python/2.7.0/email/test/data/msg_39.txt
rename to lib-python/2.7/email/test/data/msg_39.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_40.txt b/lib-python/2.7/email/test/data/msg_40.txt
rename from lib-python/2.7.0/email/test/data/msg_40.txt
rename to lib-python/2.7/email/test/data/msg_40.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_41.txt b/lib-python/2.7/email/test/data/msg_41.txt
rename from lib-python/2.7.0/email/test/data/msg_41.txt
rename to lib-python/2.7/email/test/data/msg_41.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_42.txt b/lib-python/2.7/email/test/data/msg_42.txt
rename from lib-python/2.7.0/email/test/data/msg_42.txt
rename to lib-python/2.7/email/test/data/msg_42.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_43.txt b/lib-python/2.7/email/test/data/msg_43.txt
rename from lib-python/2.7.0/email/test/data/msg_43.txt
rename to lib-python/2.7/email/test/data/msg_43.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_44.txt b/lib-python/2.7/email/test/data/msg_44.txt
rename from lib-python/2.7.0/email/test/data/msg_44.txt
rename to lib-python/2.7/email/test/data/msg_44.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_45.txt b/lib-python/2.7/email/test/data/msg_45.txt
rename from lib-python/2.7.0/email/test/data/msg_45.txt
rename to lib-python/2.7/email/test/data/msg_45.txt
diff --git a/lib-python/2.7.0/email/test/data/msg_46.txt b/lib-python/2.7/email/test/data/msg_46.txt
rename from lib-python/2.7.0/email/test/data/msg_46.txt
rename to lib-python/2.7/email/test/data/msg_46.txt
diff --git a/lib-python/2.7.0/email/test/test_email.py b/lib-python/2.7/email/test/test_email.py
rename from lib-python/2.7.0/email/test/test_email.py
rename to lib-python/2.7/email/test/test_email.py
--- a/lib-python/2.7.0/email/test/test_email.py
+++ b/lib-python/2.7/email/test/test_email.py
@@ -40,13 +40,13 @@
SPACE = ' '
-
+
def openfile(filename, mode='r'):
path = os.path.join(os.path.dirname(landmark), 'data', filename)
return open(path, mode)
-
+
# Base test class
class TestEmailBase(unittest.TestCase):
def ndiffAssertEqual(self, first, second):
@@ -68,7 +68,7 @@
return msg
-
+
# Test various aspects of the Message class's API
class TestMessageAPI(TestEmailBase):
def test_get_all(self):
@@ -543,7 +543,7 @@
self.assertEqual('us-ascii', msg.get_content_charset())
-
+
# Test the email.Encoders module
class TestEncoders(unittest.TestCase):
def test_encode_empty_payload(self):
@@ -572,7 +572,7 @@
msg = email.MIMEText.MIMEText('\xca\xb8', _charset='euc-jp')
eq(msg['content-transfer-encoding'], '7bit')
-
+
# Test long header wrapping
class TestLongHeaders(TestEmailBase):
def test_split_long_continuation(self):
@@ -893,7 +893,7 @@
""")
-
+
# Test mangling of "From " lines in the body of a message
class TestFromMangling(unittest.TestCase):
def setUp(self):
@@ -927,7 +927,7 @@
""")
-
+
# Test the basic MIMEAudio class
class TestMIMEAudio(unittest.TestCase):
def setUp(self):
@@ -976,7 +976,7 @@
header='foobar') is missing)
-
+
# Test the basic MIMEImage class
class TestMIMEImage(unittest.TestCase):
def setUp(self):
@@ -1019,7 +1019,7 @@
header='foobar') is missing)
-
+
# Test the basic MIMEText class
class TestMIMEText(unittest.TestCase):
def setUp(self):
@@ -1071,7 +1071,7 @@
self.assertRaises(UnicodeEncodeError, MIMEText, teststr)
-
+
# Test complicated multipart/* messages
class TestMultipart(TestEmailBase):
def setUp(self):
@@ -1447,10 +1447,10 @@
YXNkZg==
--===============0012394164==--""")
- self.assertEquals(m.get_payload(0).get_payload(), 'YXNkZg==')
-
-
-
+ self.assertEqual(m.get_payload(0).get_payload(), 'YXNkZg==')
+
+
+
# Test some badly formatted messages
class TestNonConformant(TestEmailBase):
def test_parse_missing_minor_type(self):
@@ -1565,7 +1565,7 @@
-
+
# Test RFC 2047 header encoding and decoding
class TestRFC2047(unittest.TestCase):
def test_rfc2047_multiline(self):
@@ -1627,7 +1627,7 @@
self.assertEqual(decode_header(s),
[(b'andr\xe9=zz', 'iso-8659-1')])
-
+
# Test the MIMEMessage class
class TestMIMEMessage(TestEmailBase):
def setUp(self):
@@ -1940,7 +1940,7 @@
msg = MIMEMultipart()
self.assertTrue(msg.is_multipart())
-
+
# A general test of parser->model->generator idempotency. IOW, read a message
# in, parse it into a message object tree, then without touching the tree,
# regenerate the plain text. The original text and the transformed text
@@ -1964,7 +1964,7 @@
eq(text, s.getvalue())
def test_parse_text_message(self):
- eq = self.assertEquals
+ eq = self.assertEqual
msg, text = self._msgobj('msg_01.txt')
eq(msg.get_content_type(), 'text/plain')
eq(msg.get_content_maintype(), 'text')
@@ -1976,7 +1976,7 @@
self._idempotent(msg, text)
def test_parse_untyped_message(self):
- eq = self.assertEquals
+ eq = self.assertEqual
msg, text = self._msgobj('msg_03.txt')
eq(msg.get_content_type(), 'text/plain')
eq(msg.get_params(), None)
@@ -2048,7 +2048,7 @@
self._idempotent(msg, text)
def test_content_type(self):
- eq = self.assertEquals
+ eq = self.assertEqual
unless = self.assertTrue
# Get a message object and reset the seek pointer for other tests
msg, text = self._msgobj('msg_05.txt')
@@ -2080,7 +2080,7 @@
eq(msg4.get_payload(), 'Yadda yadda yadda\n')
def test_parser(self):
- eq = self.assertEquals
+ eq = self.assertEqual
unless = self.assertTrue
msg, text = self._msgobj('msg_06.txt')
# Check some of the outer headers
@@ -2097,7 +2097,7 @@
eq(msg1.get_payload(), '\n')
-
+
# Test various other bits of the package's functionality
class TestMiscellaneous(TestEmailBase):
def test_message_from_string(self):
@@ -2452,7 +2452,7 @@
""")
-
+
# Test the iterator/generators
class TestIterators(TestEmailBase):
def test_body_line_iterator(self):
@@ -2545,7 +2545,7 @@
self.assertTrue(''.join([il for il, n in imt]) == ''.join(om))
-
+
class TestParsers(TestEmailBase):
def test_header_parser(self):
eq = self.assertEqual
@@ -2708,7 +2708,7 @@
msg = email.message_from_string(m)
self.assertTrue(msg.get_payload(0).get_payload().endswith('\r\n'))
-
+
class TestBase64(unittest.TestCase):
def test_len(self):
eq = self.assertEqual
@@ -2780,7 +2780,7 @@
=?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=""")
-
+
class TestQuopri(unittest.TestCase):
def setUp(self):
self.hlit = [chr(x) for x in range(ord('a'), ord('z')+1)] + \
@@ -2890,7 +2890,7 @@
two line""")
-
+
# Test the Charset class
class TestCharset(unittest.TestCase):
def tearDown(self):
@@ -2951,7 +2951,7 @@
charset = Charset('utf8')
self.assertEqual(str(charset), 'utf-8')
-
+
# Test multilingual MIME headers.
class TestHeader(TestEmailBase):
def test_simple(self):
@@ -3114,7 +3114,7 @@
raises(Errors.HeaderParseError, decode_header, s)
-
+
# Test RFC 2231 header parameters (en/de)coding
class TestRFC2231(TestEmailBase):
def test_get_param(self):
@@ -3426,7 +3426,7 @@
eq(s, 'My Document For You')
-
+
# Tests to ensure that signed parts of an email are completely preserved, as
# required by RFC1847 section 2.1. Note that these are incomplete, because the
# email package does not currently always preserve the body. See issue 1670765.
@@ -3462,7 +3462,7 @@
self._signed_parts_eq(original, result)
-
+
def _testclasses():
mod = sys.modules[__name__]
return [getattr(mod, name) for name in dir(mod) if name.startswith('Test')]
@@ -3480,6 +3480,6 @@
run_unittest(testclass)
-
+
if __name__ == '__main__':
unittest.main(defaultTest='suite')
diff --git a/lib-python/2.7.0/email/test/test_email_codecs.py b/lib-python/2.7/email/test/test_email_codecs.py
rename from lib-python/2.7.0/email/test/test_email_codecs.py
rename to lib-python/2.7/email/test/test_email_codecs.py
diff --git a/lib-python/2.7.0/email/test/test_email_codecs_renamed.py b/lib-python/2.7/email/test/test_email_codecs_renamed.py
rename from lib-python/2.7.0/email/test/test_email_codecs_renamed.py
rename to lib-python/2.7/email/test/test_email_codecs_renamed.py
diff --git a/lib-python/2.7.0/email/test/test_email_renamed.py b/lib-python/2.7/email/test/test_email_renamed.py
rename from lib-python/2.7.0/email/test/test_email_renamed.py
rename to lib-python/2.7/email/test/test_email_renamed.py
--- a/lib-python/2.7.0/email/test/test_email_renamed.py
+++ b/lib-python/2.7/email/test/test_email_renamed.py
@@ -41,13 +41,13 @@
SPACE = ' '
-
+
def openfile(filename, mode='r'):
path = os.path.join(os.path.dirname(landmark), 'data', filename)
return open(path, mode)
-
+
# Base test class
class TestEmailBase(unittest.TestCase):
def ndiffAssertEqual(self, first, second):
@@ -69,7 +69,7 @@
return msg
-
+
# Test various aspects of the Message class's API
class TestMessageAPI(TestEmailBase):
def test_get_all(self):
@@ -504,7 +504,7 @@
self.assertEqual(msg.get_payload(decode=True), x)
-
+
# Test the email.encoders module
class TestEncoders(unittest.TestCase):
def test_encode_empty_payload(self):
@@ -531,7 +531,7 @@
eq(msg['content-transfer-encoding'], 'quoted-printable')
-
+
# Test long header wrapping
class TestLongHeaders(TestEmailBase):
def test_split_long_continuation(self):
@@ -852,7 +852,7 @@
""")
-
+
# Test mangling of "From " lines in the body of a message
class TestFromMangling(unittest.TestCase):
def setUp(self):
@@ -886,7 +886,7 @@
""")
-
+
# Test the basic MIMEAudio class
class TestMIMEAudio(unittest.TestCase):
def setUp(self):
@@ -935,7 +935,7 @@
header='foobar') is missing)
-
+
# Test the basic MIMEImage class
class TestMIMEImage(unittest.TestCase):
def setUp(self):
@@ -978,7 +978,7 @@
header='foobar') is missing)
-
+
# Test the basic MIMEApplication class
class TestMIMEApplication(unittest.TestCase):
def test_headers(self):
@@ -995,7 +995,7 @@
eq(msg.get_payload(decode=True), bytes)
-
+
# Test the basic MIMEText class
class TestMIMEText(unittest.TestCase):
def setUp(self):
@@ -1022,7 +1022,7 @@
eq(msg['content-type'], 'text/plain; charset="us-ascii"')
-
+
# Test complicated multipart/* messages
class TestMultipart(TestEmailBase):
def setUp(self):
@@ -1398,10 +1398,10 @@
YXNkZg==
--===============0012394164==--""")
- self.assertEquals(m.get_payload(0).get_payload(), 'YXNkZg==')
-
-
-
+ self.assertEqual(m.get_payload(0).get_payload(), 'YXNkZg==')
+
+
+
# Test some badly formatted messages
class TestNonConformant(TestEmailBase):
def test_parse_missing_minor_type(self):
@@ -1515,7 +1515,7 @@
eq(msg.defects[0].line, ' Line 1\n')
-
+
# Test RFC 2047 header encoding and decoding
class TestRFC2047(unittest.TestCase):
def test_rfc2047_multiline(self):
@@ -1562,7 +1562,7 @@
('sbord', None)])
-
+
# Test the MIMEMessage class
class TestMIMEMessage(TestEmailBase):
def setUp(self):
@@ -1872,7 +1872,7 @@
eq(msg.get_payload(1), text2)
-
+
# A general test of parser->model->generator idempotency. IOW, read a message
# in, parse it into a message object tree, then without touching the tree,
# regenerate the plain text. The original text and the transformed text
@@ -1896,7 +1896,7 @@
eq(text, s.getvalue())
def test_parse_text_message(self):
- eq = self.assertEquals
+ eq = self.assertEqual
msg, text = self._msgobj('msg_01.txt')
eq(msg.get_content_type(), 'text/plain')
eq(msg.get_content_maintype(), 'text')
@@ -1908,7 +1908,7 @@
self._idempotent(msg, text)
def test_parse_untyped_message(self):
- eq = self.assertEquals
+ eq = self.assertEqual
msg, text = self._msgobj('msg_03.txt')
eq(msg.get_content_type(), 'text/plain')
eq(msg.get_params(), None)
@@ -1980,7 +1980,7 @@
self._idempotent(msg, text)
def test_content_type(self):
- eq = self.assertEquals
+ eq = self.assertEqual
unless = self.assertTrue
# Get a message object and reset the seek pointer for other tests
msg, text = self._msgobj('msg_05.txt')
@@ -2012,7 +2012,7 @@
eq(msg4.get_payload(), 'Yadda yadda yadda\n')
def test_parser(self):
- eq = self.assertEquals
+ eq = self.assertEqual
unless = self.assertTrue
msg, text = self._msgobj('msg_06.txt')
# Check some of the outer headers
@@ -2029,7 +2029,7 @@
eq(msg1.get_payload(), '\n')
-
+
# Test various other bits of the package's functionality
class TestMiscellaneous(TestEmailBase):
def test_message_from_string(self):
@@ -2354,7 +2354,7 @@
""")
-
+
# Test the iterator/generators
class TestIterators(TestEmailBase):
def test_body_line_iterator(self):
@@ -2414,7 +2414,7 @@
""")
-
+
class TestParsers(TestEmailBase):
def test_header_parser(self):
eq = self.assertEqual
@@ -2559,7 +2559,7 @@
eq(msg.get_payload(), 'body')
-
+
class TestBase64(unittest.TestCase):
def test_len(self):
eq = self.assertEqual
@@ -2631,7 +2631,7 @@
=?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=""")
-
+
class TestQuopri(unittest.TestCase):
def setUp(self):
self.hlit = [chr(x) for x in range(ord('a'), ord('z')+1)] + \
@@ -2741,7 +2741,7 @@
two line""")
-
+
# Test the Charset class
class TestCharset(unittest.TestCase):
def tearDown(self):
@@ -2799,7 +2799,7 @@
self.assertRaises(errors.CharsetError, Charset, 'asc\xffii')
-
+
# Test multilingual MIME headers.
class TestHeader(TestEmailBase):
def test_simple(self):
@@ -2962,7 +2962,7 @@
raises(errors.HeaderParseError, decode_header, s)
-
+
# Test RFC 2231 header parameters (en/de)coding
class TestRFC2231(TestEmailBase):
def test_get_param(self):
@@ -3274,7 +3274,7 @@
eq(s, 'My Document For You')
-
+
def _testclasses():
mod = sys.modules[__name__]
return [getattr(mod, name) for name in dir(mod) if name.startswith('Test')]
@@ -3292,6 +3292,6 @@
run_unittest(testclass)
-
+
if __name__ == '__main__':
unittest.main(defaultTest='suite')
diff --git a/lib-python/2.7.0/email/test/test_email_torture.py b/lib-python/2.7/email/test/test_email_torture.py
rename from lib-python/2.7.0/email/test/test_email_torture.py
rename to lib-python/2.7/email/test/test_email_torture.py
diff --git a/lib-python/2.7.0/email/utils.py b/lib-python/2.7/email/utils.py
rename from lib-python/2.7.0/email/utils.py
rename to lib-python/2.7/email/utils.py
diff --git a/lib-python/2.7.0/encodings/__init__.py b/lib-python/2.7/encodings/__init__.py
rename from lib-python/2.7.0/encodings/__init__.py
rename to lib-python/2.7/encodings/__init__.py
diff --git a/lib-python/2.7.0/encodings/aliases.py b/lib-python/2.7/encodings/aliases.py
rename from lib-python/2.7.0/encodings/aliases.py
rename to lib-python/2.7/encodings/aliases.py
diff --git a/lib-python/2.7.0/encodings/ascii.py b/lib-python/2.7/encodings/ascii.py
rename from lib-python/2.7.0/encodings/ascii.py
rename to lib-python/2.7/encodings/ascii.py
diff --git a/lib-python/2.7.0/encodings/base64_codec.py b/lib-python/2.7/encodings/base64_codec.py
rename from lib-python/2.7.0/encodings/base64_codec.py
rename to lib-python/2.7/encodings/base64_codec.py
diff --git a/lib-python/2.7.0/encodings/big5.py b/lib-python/2.7/encodings/big5.py
rename from lib-python/2.7.0/encodings/big5.py
rename to lib-python/2.7/encodings/big5.py
diff --git a/lib-python/2.7.0/encodings/big5hkscs.py b/lib-python/2.7/encodings/big5hkscs.py
rename from lib-python/2.7.0/encodings/big5hkscs.py
rename to lib-python/2.7/encodings/big5hkscs.py
diff --git a/lib-python/2.7.0/encodings/bz2_codec.py b/lib-python/2.7/encodings/bz2_codec.py
rename from lib-python/2.7.0/encodings/bz2_codec.py
rename to lib-python/2.7/encodings/bz2_codec.py
diff --git a/lib-python/2.7.0/encodings/charmap.py b/lib-python/2.7/encodings/charmap.py
rename from lib-python/2.7.0/encodings/charmap.py
rename to lib-python/2.7/encodings/charmap.py
diff --git a/lib-python/2.7.0/encodings/cp037.py b/lib-python/2.7/encodings/cp037.py
rename from lib-python/2.7.0/encodings/cp037.py
rename to lib-python/2.7/encodings/cp037.py
diff --git a/lib-python/2.7.0/encodings/cp1006.py b/lib-python/2.7/encodings/cp1006.py
rename from lib-python/2.7.0/encodings/cp1006.py
rename to lib-python/2.7/encodings/cp1006.py
diff --git a/lib-python/2.7.0/encodings/cp1026.py b/lib-python/2.7/encodings/cp1026.py
rename from lib-python/2.7.0/encodings/cp1026.py
rename to lib-python/2.7/encodings/cp1026.py
diff --git a/lib-python/2.7.0/encodings/cp1140.py b/lib-python/2.7/encodings/cp1140.py
rename from lib-python/2.7.0/encodings/cp1140.py
rename to lib-python/2.7/encodings/cp1140.py
diff --git a/lib-python/2.7.0/encodings/cp1250.py b/lib-python/2.7/encodings/cp1250.py
rename from lib-python/2.7.0/encodings/cp1250.py
rename to lib-python/2.7/encodings/cp1250.py
diff --git a/lib-python/2.7.0/encodings/cp1251.py b/lib-python/2.7/encodings/cp1251.py
rename from lib-python/2.7.0/encodings/cp1251.py
rename to lib-python/2.7/encodings/cp1251.py
diff --git a/lib-python/2.7.0/encodings/cp1252.py b/lib-python/2.7/encodings/cp1252.py
rename from lib-python/2.7.0/encodings/cp1252.py
rename to lib-python/2.7/encodings/cp1252.py
diff --git a/lib-python/2.7.0/encodings/cp1253.py b/lib-python/2.7/encodings/cp1253.py
rename from lib-python/2.7.0/encodings/cp1253.py
rename to lib-python/2.7/encodings/cp1253.py
diff --git a/lib-python/2.7.0/encodings/cp1254.py b/lib-python/2.7/encodings/cp1254.py
rename from lib-python/2.7.0/encodings/cp1254.py
rename to lib-python/2.7/encodings/cp1254.py
diff --git a/lib-python/2.7.0/encodings/cp1255.py b/lib-python/2.7/encodings/cp1255.py
rename from lib-python/2.7.0/encodings/cp1255.py
rename to lib-python/2.7/encodings/cp1255.py
diff --git a/lib-python/2.7.0/encodings/cp1256.py b/lib-python/2.7/encodings/cp1256.py
rename from lib-python/2.7.0/encodings/cp1256.py
rename to lib-python/2.7/encodings/cp1256.py
diff --git a/lib-python/2.7.0/encodings/cp1257.py b/lib-python/2.7/encodings/cp1257.py
rename from lib-python/2.7.0/encodings/cp1257.py
rename to lib-python/2.7/encodings/cp1257.py
diff --git a/lib-python/2.7.0/encodings/cp1258.py b/lib-python/2.7/encodings/cp1258.py
rename from lib-python/2.7.0/encodings/cp1258.py
rename to lib-python/2.7/encodings/cp1258.py
diff --git a/lib-python/2.7.0/encodings/cp424.py b/lib-python/2.7/encodings/cp424.py
rename from lib-python/2.7.0/encodings/cp424.py
rename to lib-python/2.7/encodings/cp424.py
diff --git a/lib-python/2.7.0/encodings/cp437.py b/lib-python/2.7/encodings/cp437.py
rename from lib-python/2.7.0/encodings/cp437.py
rename to lib-python/2.7/encodings/cp437.py
diff --git a/lib-python/2.7.0/encodings/cp500.py b/lib-python/2.7/encodings/cp500.py
rename from lib-python/2.7.0/encodings/cp500.py
rename to lib-python/2.7/encodings/cp500.py
diff --git a/lib-python/2.7.0/encodings/cp720.py b/lib-python/2.7/encodings/cp720.py
rename from lib-python/2.7.0/encodings/cp720.py
rename to lib-python/2.7/encodings/cp720.py
diff --git a/lib-python/2.7.0/encodings/cp737.py b/lib-python/2.7/encodings/cp737.py
rename from lib-python/2.7.0/encodings/cp737.py
rename to lib-python/2.7/encodings/cp737.py
diff --git a/lib-python/2.7.0/encodings/cp775.py b/lib-python/2.7/encodings/cp775.py
rename from lib-python/2.7.0/encodings/cp775.py
rename to lib-python/2.7/encodings/cp775.py
diff --git a/lib-python/2.7.0/encodings/cp850.py b/lib-python/2.7/encodings/cp850.py
rename from lib-python/2.7.0/encodings/cp850.py
rename to lib-python/2.7/encodings/cp850.py
diff --git a/lib-python/2.7.0/encodings/cp852.py b/lib-python/2.7/encodings/cp852.py
rename from lib-python/2.7.0/encodings/cp852.py
rename to lib-python/2.7/encodings/cp852.py
diff --git a/lib-python/2.7.0/encodings/cp855.py b/lib-python/2.7/encodings/cp855.py
rename from lib-python/2.7.0/encodings/cp855.py
rename to lib-python/2.7/encodings/cp855.py
diff --git a/lib-python/2.7.0/encodings/cp856.py b/lib-python/2.7/encodings/cp856.py
rename from lib-python/2.7.0/encodings/cp856.py
rename to lib-python/2.7/encodings/cp856.py
diff --git a/lib-python/2.7.0/encodings/cp857.py b/lib-python/2.7/encodings/cp857.py
rename from lib-python/2.7.0/encodings/cp857.py
rename to lib-python/2.7/encodings/cp857.py
diff --git a/lib-python/2.7.0/encodings/cp858.py b/lib-python/2.7/encodings/cp858.py
rename from lib-python/2.7.0/encodings/cp858.py
rename to lib-python/2.7/encodings/cp858.py
diff --git a/lib-python/2.7.0/encodings/cp860.py b/lib-python/2.7/encodings/cp860.py
rename from lib-python/2.7.0/encodings/cp860.py
rename to lib-python/2.7/encodings/cp860.py
diff --git a/lib-python/2.7.0/encodings/cp861.py b/lib-python/2.7/encodings/cp861.py
rename from lib-python/2.7.0/encodings/cp861.py
rename to lib-python/2.7/encodings/cp861.py
diff --git a/lib-python/2.7.0/encodings/cp862.py b/lib-python/2.7/encodings/cp862.py
rename from lib-python/2.7.0/encodings/cp862.py
rename to lib-python/2.7/encodings/cp862.py
diff --git a/lib-python/2.7.0/encodings/cp863.py b/lib-python/2.7/encodings/cp863.py
rename from lib-python/2.7.0/encodings/cp863.py
rename to lib-python/2.7/encodings/cp863.py
diff --git a/lib-python/2.7.0/encodings/cp864.py b/lib-python/2.7/encodings/cp864.py
rename from lib-python/2.7.0/encodings/cp864.py
rename to lib-python/2.7/encodings/cp864.py
diff --git a/lib-python/2.7.0/encodings/cp865.py b/lib-python/2.7/encodings/cp865.py
rename from lib-python/2.7.0/encodings/cp865.py
rename to lib-python/2.7/encodings/cp865.py
diff --git a/lib-python/2.7.0/encodings/cp866.py b/lib-python/2.7/encodings/cp866.py
rename from lib-python/2.7.0/encodings/cp866.py
rename to lib-python/2.7/encodings/cp866.py
diff --git a/lib-python/2.7.0/encodings/cp869.py b/lib-python/2.7/encodings/cp869.py
rename from lib-python/2.7.0/encodings/cp869.py
rename to lib-python/2.7/encodings/cp869.py
diff --git a/lib-python/2.7.0/encodings/cp874.py b/lib-python/2.7/encodings/cp874.py
rename from lib-python/2.7.0/encodings/cp874.py
rename to lib-python/2.7/encodings/cp874.py
diff --git a/lib-python/2.7.0/encodings/cp875.py b/lib-python/2.7/encodings/cp875.py
rename from lib-python/2.7.0/encodings/cp875.py
rename to lib-python/2.7/encodings/cp875.py
diff --git a/lib-python/2.7.0/encodings/cp932.py b/lib-python/2.7/encodings/cp932.py
rename from lib-python/2.7.0/encodings/cp932.py
rename to lib-python/2.7/encodings/cp932.py
diff --git a/lib-python/2.7.0/encodings/cp949.py b/lib-python/2.7/encodings/cp949.py
rename from lib-python/2.7.0/encodings/cp949.py
rename to lib-python/2.7/encodings/cp949.py
diff --git a/lib-python/2.7.0/encodings/cp950.py b/lib-python/2.7/encodings/cp950.py
rename from lib-python/2.7.0/encodings/cp950.py
rename to lib-python/2.7/encodings/cp950.py
diff --git a/lib-python/2.7.0/encodings/euc_jis_2004.py b/lib-python/2.7/encodings/euc_jis_2004.py
rename from lib-python/2.7.0/encodings/euc_jis_2004.py
rename to lib-python/2.7/encodings/euc_jis_2004.py
diff --git a/lib-python/2.7.0/encodings/euc_jisx0213.py b/lib-python/2.7/encodings/euc_jisx0213.py
rename from lib-python/2.7.0/encodings/euc_jisx0213.py
rename to lib-python/2.7/encodings/euc_jisx0213.py
diff --git a/lib-python/2.7.0/encodings/euc_jp.py b/lib-python/2.7/encodings/euc_jp.py
rename from lib-python/2.7.0/encodings/euc_jp.py
rename to lib-python/2.7/encodings/euc_jp.py
diff --git a/lib-python/2.7.0/encodings/euc_kr.py b/lib-python/2.7/encodings/euc_kr.py
rename from lib-python/2.7.0/encodings/euc_kr.py
rename to lib-python/2.7/encodings/euc_kr.py
diff --git a/lib-python/2.7.0/encodings/gb18030.py b/lib-python/2.7/encodings/gb18030.py
rename from lib-python/2.7.0/encodings/gb18030.py
rename to lib-python/2.7/encodings/gb18030.py
diff --git a/lib-python/2.7.0/encodings/gb2312.py b/lib-python/2.7/encodings/gb2312.py
rename from lib-python/2.7.0/encodings/gb2312.py
rename to lib-python/2.7/encodings/gb2312.py
diff --git a/lib-python/2.7.0/encodings/gbk.py b/lib-python/2.7/encodings/gbk.py
rename from lib-python/2.7.0/encodings/gbk.py
rename to lib-python/2.7/encodings/gbk.py
diff --git a/lib-python/2.7.0/encodings/hex_codec.py b/lib-python/2.7/encodings/hex_codec.py
rename from lib-python/2.7.0/encodings/hex_codec.py
rename to lib-python/2.7/encodings/hex_codec.py
diff --git a/lib-python/2.7.0/encodings/hp_roman8.py b/lib-python/2.7/encodings/hp_roman8.py
rename from lib-python/2.7.0/encodings/hp_roman8.py
rename to lib-python/2.7/encodings/hp_roman8.py
diff --git a/lib-python/2.7.0/encodings/hz.py b/lib-python/2.7/encodings/hz.py
rename from lib-python/2.7.0/encodings/hz.py
rename to lib-python/2.7/encodings/hz.py
diff --git a/lib-python/2.7.0/encodings/idna.py b/lib-python/2.7/encodings/idna.py
rename from lib-python/2.7.0/encodings/idna.py
rename to lib-python/2.7/encodings/idna.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp.py b/lib-python/2.7/encodings/iso2022_jp.py
rename from lib-python/2.7.0/encodings/iso2022_jp.py
rename to lib-python/2.7/encodings/iso2022_jp.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp_1.py b/lib-python/2.7/encodings/iso2022_jp_1.py
rename from lib-python/2.7.0/encodings/iso2022_jp_1.py
rename to lib-python/2.7/encodings/iso2022_jp_1.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp_2.py b/lib-python/2.7/encodings/iso2022_jp_2.py
rename from lib-python/2.7.0/encodings/iso2022_jp_2.py
rename to lib-python/2.7/encodings/iso2022_jp_2.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp_2004.py b/lib-python/2.7/encodings/iso2022_jp_2004.py
rename from lib-python/2.7.0/encodings/iso2022_jp_2004.py
rename to lib-python/2.7/encodings/iso2022_jp_2004.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp_3.py b/lib-python/2.7/encodings/iso2022_jp_3.py
rename from lib-python/2.7.0/encodings/iso2022_jp_3.py
rename to lib-python/2.7/encodings/iso2022_jp_3.py
diff --git a/lib-python/2.7.0/encodings/iso2022_jp_ext.py b/lib-python/2.7/encodings/iso2022_jp_ext.py
rename from lib-python/2.7.0/encodings/iso2022_jp_ext.py
rename to lib-python/2.7/encodings/iso2022_jp_ext.py
diff --git a/lib-python/2.7.0/encodings/iso2022_kr.py b/lib-python/2.7/encodings/iso2022_kr.py
rename from lib-python/2.7.0/encodings/iso2022_kr.py
rename to lib-python/2.7/encodings/iso2022_kr.py
diff --git a/lib-python/2.7.0/encodings/iso8859_1.py b/lib-python/2.7/encodings/iso8859_1.py
rename from lib-python/2.7.0/encodings/iso8859_1.py
rename to lib-python/2.7/encodings/iso8859_1.py
diff --git a/lib-python/2.7.0/encodings/iso8859_10.py b/lib-python/2.7/encodings/iso8859_10.py
rename from lib-python/2.7.0/encodings/iso8859_10.py
rename to lib-python/2.7/encodings/iso8859_10.py
diff --git a/lib-python/2.7.0/encodings/iso8859_11.py b/lib-python/2.7/encodings/iso8859_11.py
rename from lib-python/2.7.0/encodings/iso8859_11.py
rename to lib-python/2.7/encodings/iso8859_11.py
diff --git a/lib-python/2.7.0/encodings/iso8859_13.py b/lib-python/2.7/encodings/iso8859_13.py
rename from lib-python/2.7.0/encodings/iso8859_13.py
rename to lib-python/2.7/encodings/iso8859_13.py
diff --git a/lib-python/2.7.0/encodings/iso8859_14.py b/lib-python/2.7/encodings/iso8859_14.py
rename from lib-python/2.7.0/encodings/iso8859_14.py
rename to lib-python/2.7/encodings/iso8859_14.py
diff --git a/lib-python/2.7.0/encodings/iso8859_15.py b/lib-python/2.7/encodings/iso8859_15.py
rename from lib-python/2.7.0/encodings/iso8859_15.py
rename to lib-python/2.7/encodings/iso8859_15.py
diff --git a/lib-python/2.7.0/encodings/iso8859_16.py b/lib-python/2.7/encodings/iso8859_16.py
rename from lib-python/2.7.0/encodings/iso8859_16.py
rename to lib-python/2.7/encodings/iso8859_16.py
diff --git a/lib-python/2.7.0/encodings/iso8859_2.py b/lib-python/2.7/encodings/iso8859_2.py
rename from lib-python/2.7.0/encodings/iso8859_2.py
rename to lib-python/2.7/encodings/iso8859_2.py
diff --git a/lib-python/2.7.0/encodings/iso8859_3.py b/lib-python/2.7/encodings/iso8859_3.py
rename from lib-python/2.7.0/encodings/iso8859_3.py
rename to lib-python/2.7/encodings/iso8859_3.py
diff --git a/lib-python/2.7.0/encodings/iso8859_4.py b/lib-python/2.7/encodings/iso8859_4.py
rename from lib-python/2.7.0/encodings/iso8859_4.py
rename to lib-python/2.7/encodings/iso8859_4.py
diff --git a/lib-python/2.7.0/encodings/iso8859_5.py b/lib-python/2.7/encodings/iso8859_5.py
rename from lib-python/2.7.0/encodings/iso8859_5.py
rename to lib-python/2.7/encodings/iso8859_5.py
diff --git a/lib-python/2.7.0/encodings/iso8859_6.py b/lib-python/2.7/encodings/iso8859_6.py
rename from lib-python/2.7.0/encodings/iso8859_6.py
rename to lib-python/2.7/encodings/iso8859_6.py
diff --git a/lib-python/2.7.0/encodings/iso8859_7.py b/lib-python/2.7/encodings/iso8859_7.py
rename from lib-python/2.7.0/encodings/iso8859_7.py
rename to lib-python/2.7/encodings/iso8859_7.py
diff --git a/lib-python/2.7.0/encodings/iso8859_8.py b/lib-python/2.7/encodings/iso8859_8.py
rename from lib-python/2.7.0/encodings/iso8859_8.py
rename to lib-python/2.7/encodings/iso8859_8.py
diff --git a/lib-python/2.7.0/encodings/iso8859_9.py b/lib-python/2.7/encodings/iso8859_9.py
rename from lib-python/2.7.0/encodings/iso8859_9.py
rename to lib-python/2.7/encodings/iso8859_9.py
diff --git a/lib-python/2.7.0/encodings/johab.py b/lib-python/2.7/encodings/johab.py
rename from lib-python/2.7.0/encodings/johab.py
rename to lib-python/2.7/encodings/johab.py
diff --git a/lib-python/2.7.0/encodings/koi8_r.py b/lib-python/2.7/encodings/koi8_r.py
rename from lib-python/2.7.0/encodings/koi8_r.py
rename to lib-python/2.7/encodings/koi8_r.py
diff --git a/lib-python/2.7.0/encodings/koi8_u.py b/lib-python/2.7/encodings/koi8_u.py
rename from lib-python/2.7.0/encodings/koi8_u.py
rename to lib-python/2.7/encodings/koi8_u.py
diff --git a/lib-python/2.7.0/encodings/latin_1.py b/lib-python/2.7/encodings/latin_1.py
rename from lib-python/2.7.0/encodings/latin_1.py
rename to lib-python/2.7/encodings/latin_1.py
diff --git a/lib-python/2.7.0/encodings/mac_arabic.py b/lib-python/2.7/encodings/mac_arabic.py
rename from lib-python/2.7.0/encodings/mac_arabic.py
rename to lib-python/2.7/encodings/mac_arabic.py
diff --git a/lib-python/2.7.0/encodings/mac_centeuro.py b/lib-python/2.7/encodings/mac_centeuro.py
rename from lib-python/2.7.0/encodings/mac_centeuro.py
rename to lib-python/2.7/encodings/mac_centeuro.py
diff --git a/lib-python/2.7.0/encodings/mac_croatian.py b/lib-python/2.7/encodings/mac_croatian.py
rename from lib-python/2.7.0/encodings/mac_croatian.py
rename to lib-python/2.7/encodings/mac_croatian.py
diff --git a/lib-python/2.7.0/encodings/mac_cyrillic.py b/lib-python/2.7/encodings/mac_cyrillic.py
rename from lib-python/2.7.0/encodings/mac_cyrillic.py
rename to lib-python/2.7/encodings/mac_cyrillic.py
diff --git a/lib-python/2.7.0/encodings/mac_farsi.py b/lib-python/2.7/encodings/mac_farsi.py
rename from lib-python/2.7.0/encodings/mac_farsi.py
rename to lib-python/2.7/encodings/mac_farsi.py
diff --git a/lib-python/2.7.0/encodings/mac_greek.py b/lib-python/2.7/encodings/mac_greek.py
rename from lib-python/2.7.0/encodings/mac_greek.py
rename to lib-python/2.7/encodings/mac_greek.py
diff --git a/lib-python/2.7.0/encodings/mac_iceland.py b/lib-python/2.7/encodings/mac_iceland.py
rename from lib-python/2.7.0/encodings/mac_iceland.py
rename to lib-python/2.7/encodings/mac_iceland.py
diff --git a/lib-python/2.7.0/encodings/mac_latin2.py b/lib-python/2.7/encodings/mac_latin2.py
rename from lib-python/2.7.0/encodings/mac_latin2.py
rename to lib-python/2.7/encodings/mac_latin2.py
diff --git a/lib-python/2.7.0/encodings/mac_roman.py b/lib-python/2.7/encodings/mac_roman.py
rename from lib-python/2.7.0/encodings/mac_roman.py
rename to lib-python/2.7/encodings/mac_roman.py
diff --git a/lib-python/2.7.0/encodings/mac_romanian.py b/lib-python/2.7/encodings/mac_romanian.py
rename from lib-python/2.7.0/encodings/mac_romanian.py
rename to lib-python/2.7/encodings/mac_romanian.py
diff --git a/lib-python/2.7.0/encodings/mac_turkish.py b/lib-python/2.7/encodings/mac_turkish.py
rename from lib-python/2.7.0/encodings/mac_turkish.py
rename to lib-python/2.7/encodings/mac_turkish.py
diff --git a/lib-python/2.7.0/encodings/mbcs.py b/lib-python/2.7/encodings/mbcs.py
rename from lib-python/2.7.0/encodings/mbcs.py
rename to lib-python/2.7/encodings/mbcs.py
diff --git a/lib-python/2.7.0/encodings/palmos.py b/lib-python/2.7/encodings/palmos.py
rename from lib-python/2.7.0/encodings/palmos.py
rename to lib-python/2.7/encodings/palmos.py
diff --git a/lib-python/2.7.0/encodings/ptcp154.py b/lib-python/2.7/encodings/ptcp154.py
rename from lib-python/2.7.0/encodings/ptcp154.py
rename to lib-python/2.7/encodings/ptcp154.py
diff --git a/lib-python/2.7.0/encodings/punycode.py b/lib-python/2.7/encodings/punycode.py
rename from lib-python/2.7.0/encodings/punycode.py
rename to lib-python/2.7/encodings/punycode.py
diff --git a/lib-python/2.7.0/encodings/quopri_codec.py b/lib-python/2.7/encodings/quopri_codec.py
rename from lib-python/2.7.0/encodings/quopri_codec.py
rename to lib-python/2.7/encodings/quopri_codec.py
diff --git a/lib-python/2.7.0/encodings/raw_unicode_escape.py b/lib-python/2.7/encodings/raw_unicode_escape.py
rename from lib-python/2.7.0/encodings/raw_unicode_escape.py
rename to lib-python/2.7/encodings/raw_unicode_escape.py
diff --git a/lib-python/2.7.0/encodings/rot_13.py b/lib-python/2.7/encodings/rot_13.py
rename from lib-python/2.7.0/encodings/rot_13.py
rename to lib-python/2.7/encodings/rot_13.py
diff --git a/lib-python/2.7.0/encodings/shift_jis.py b/lib-python/2.7/encodings/shift_jis.py
rename from lib-python/2.7.0/encodings/shift_jis.py
rename to lib-python/2.7/encodings/shift_jis.py
diff --git a/lib-python/2.7.0/encodings/shift_jis_2004.py b/lib-python/2.7/encodings/shift_jis_2004.py
rename from lib-python/2.7.0/encodings/shift_jis_2004.py
rename to lib-python/2.7/encodings/shift_jis_2004.py
diff --git a/lib-python/2.7.0/encodings/shift_jisx0213.py b/lib-python/2.7/encodings/shift_jisx0213.py
rename from lib-python/2.7.0/encodings/shift_jisx0213.py
rename to lib-python/2.7/encodings/shift_jisx0213.py
diff --git a/lib-python/2.7.0/encodings/string_escape.py b/lib-python/2.7/encodings/string_escape.py
rename from lib-python/2.7.0/encodings/string_escape.py
rename to lib-python/2.7/encodings/string_escape.py
diff --git a/lib-python/2.7.0/encodings/tis_620.py b/lib-python/2.7/encodings/tis_620.py
rename from lib-python/2.7.0/encodings/tis_620.py
rename to lib-python/2.7/encodings/tis_620.py
diff --git a/lib-python/2.7.0/encodings/undefined.py b/lib-python/2.7/encodings/undefined.py
rename from lib-python/2.7.0/encodings/undefined.py
rename to lib-python/2.7/encodings/undefined.py
diff --git a/lib-python/2.7.0/encodings/unicode_escape.py b/lib-python/2.7/encodings/unicode_escape.py
rename from lib-python/2.7.0/encodings/unicode_escape.py
rename to lib-python/2.7/encodings/unicode_escape.py
diff --git a/lib-python/2.7.0/encodings/unicode_internal.py b/lib-python/2.7/encodings/unicode_internal.py
rename from lib-python/2.7.0/encodings/unicode_internal.py
rename to lib-python/2.7/encodings/unicode_internal.py
diff --git a/lib-python/2.7.0/encodings/utf_16.py b/lib-python/2.7/encodings/utf_16.py
rename from lib-python/2.7.0/encodings/utf_16.py
rename to lib-python/2.7/encodings/utf_16.py
diff --git a/lib-python/2.7.0/encodings/utf_16_be.py b/lib-python/2.7/encodings/utf_16_be.py
rename from lib-python/2.7.0/encodings/utf_16_be.py
rename to lib-python/2.7/encodings/utf_16_be.py
diff --git a/lib-python/2.7.0/encodings/utf_16_le.py b/lib-python/2.7/encodings/utf_16_le.py
rename from lib-python/2.7.0/encodings/utf_16_le.py
rename to lib-python/2.7/encodings/utf_16_le.py
diff --git a/lib-python/2.7.0/encodings/utf_32.py b/lib-python/2.7/encodings/utf_32.py
rename from lib-python/2.7.0/encodings/utf_32.py
rename to lib-python/2.7/encodings/utf_32.py
diff --git a/lib-python/2.7.0/encodings/utf_32_be.py b/lib-python/2.7/encodings/utf_32_be.py
rename from lib-python/2.7.0/encodings/utf_32_be.py
rename to lib-python/2.7/encodings/utf_32_be.py
diff --git a/lib-python/2.7.0/encodings/utf_32_le.py b/lib-python/2.7/encodings/utf_32_le.py
rename from lib-python/2.7.0/encodings/utf_32_le.py
rename to lib-python/2.7/encodings/utf_32_le.py
diff --git a/lib-python/2.7.0/encodings/utf_7.py b/lib-python/2.7/encodings/utf_7.py
rename from lib-python/2.7.0/encodings/utf_7.py
rename to lib-python/2.7/encodings/utf_7.py
diff --git a/lib-python/2.7.0/encodings/utf_8.py b/lib-python/2.7/encodings/utf_8.py
rename from lib-python/2.7.0/encodings/utf_8.py
rename to lib-python/2.7/encodings/utf_8.py
diff --git a/lib-python/2.7.0/encodings/utf_8_sig.py b/lib-python/2.7/encodings/utf_8_sig.py
rename from lib-python/2.7.0/encodings/utf_8_sig.py
rename to lib-python/2.7/encodings/utf_8_sig.py
diff --git a/lib-python/2.7.0/encodings/uu_codec.py b/lib-python/2.7/encodings/uu_codec.py
rename from lib-python/2.7.0/encodings/uu_codec.py
rename to lib-python/2.7/encodings/uu_codec.py
diff --git a/lib-python/2.7.0/encodings/zlib_codec.py b/lib-python/2.7/encodings/zlib_codec.py
rename from lib-python/2.7.0/encodings/zlib_codec.py
rename to lib-python/2.7/encodings/zlib_codec.py
diff --git a/lib-python/2.7.0/filecmp.py b/lib-python/2.7/filecmp.py
rename from lib-python/2.7.0/filecmp.py
rename to lib-python/2.7/filecmp.py
diff --git a/lib-python/2.7.0/fileinput.py b/lib-python/2.7/fileinput.py
rename from lib-python/2.7.0/fileinput.py
rename to lib-python/2.7/fileinput.py
diff --git a/lib-python/2.7.0/fnmatch.py b/lib-python/2.7/fnmatch.py
rename from lib-python/2.7.0/fnmatch.py
rename to lib-python/2.7/fnmatch.py
diff --git a/lib-python/2.7.0/formatter.py b/lib-python/2.7/formatter.py
rename from lib-python/2.7.0/formatter.py
rename to lib-python/2.7/formatter.py
diff --git a/lib-python/2.7.0/fpformat.py b/lib-python/2.7/fpformat.py
rename from lib-python/2.7.0/fpformat.py
rename to lib-python/2.7/fpformat.py
diff --git a/lib-python/2.7.0/fractions.py b/lib-python/2.7/fractions.py
rename from lib-python/2.7.0/fractions.py
rename to lib-python/2.7/fractions.py
diff --git a/lib-python/2.7.0/ftplib.py b/lib-python/2.7/ftplib.py
rename from lib-python/2.7.0/ftplib.py
rename to lib-python/2.7/ftplib.py
diff --git a/lib-python/2.7.0/functools.py b/lib-python/2.7/functools.py
rename from lib-python/2.7.0/functools.py
rename to lib-python/2.7/functools.py
diff --git a/lib-python/2.7.0/genericpath.py b/lib-python/2.7/genericpath.py
rename from lib-python/2.7.0/genericpath.py
rename to lib-python/2.7/genericpath.py
diff --git a/lib-python/2.7.0/getopt.py b/lib-python/2.7/getopt.py
rename from lib-python/2.7.0/getopt.py
rename to lib-python/2.7/getopt.py
diff --git a/lib-python/2.7.0/getpass.py b/lib-python/2.7/getpass.py
rename from lib-python/2.7.0/getpass.py
rename to lib-python/2.7/getpass.py
diff --git a/lib-python/2.7.0/gettext.py b/lib-python/2.7/gettext.py
rename from lib-python/2.7.0/gettext.py
rename to lib-python/2.7/gettext.py
diff --git a/lib-python/2.7.0/glob.py b/lib-python/2.7/glob.py
rename from lib-python/2.7.0/glob.py
rename to lib-python/2.7/glob.py
diff --git a/lib-python/2.7.0/gzip.py b/lib-python/2.7/gzip.py
rename from lib-python/2.7.0/gzip.py
rename to lib-python/2.7/gzip.py
diff --git a/lib-python/2.7.0/hashlib.py b/lib-python/2.7/hashlib.py
rename from lib-python/2.7.0/hashlib.py
rename to lib-python/2.7/hashlib.py
--- a/lib-python/2.7.0/hashlib.py
+++ b/lib-python/2.7/hashlib.py
@@ -1,4 +1,4 @@
-# $Id: hashlib.py 78528 2010-03-01 02:01:47Z gregory.p.smith $
+# $Id$
#
# Copyright (C) 2005 Gregory P. Smith (greg at krypto.org)
# Licensed to PSF under a Contributor Agreement.
diff --git a/lib-python/2.7.0/heapq.py b/lib-python/2.7/heapq.py
rename from lib-python/2.7.0/heapq.py
rename to lib-python/2.7/heapq.py
diff --git a/lib-python/2.7.0/hmac.py b/lib-python/2.7/hmac.py
rename from lib-python/2.7.0/hmac.py
rename to lib-python/2.7/hmac.py
diff --git a/lib-python/2.7.0/hotshot/__init__.py b/lib-python/2.7/hotshot/__init__.py
rename from lib-python/2.7.0/hotshot/__init__.py
rename to lib-python/2.7/hotshot/__init__.py
diff --git a/lib-python/2.7.0/hotshot/log.py b/lib-python/2.7/hotshot/log.py
rename from lib-python/2.7.0/hotshot/log.py
rename to lib-python/2.7/hotshot/log.py
diff --git a/lib-python/2.7.0/hotshot/stats.py b/lib-python/2.7/hotshot/stats.py
rename from lib-python/2.7.0/hotshot/stats.py
rename to lib-python/2.7/hotshot/stats.py
diff --git a/lib-python/2.7.0/hotshot/stones.py b/lib-python/2.7/hotshot/stones.py
rename from lib-python/2.7.0/hotshot/stones.py
rename to lib-python/2.7/hotshot/stones.py
diff --git a/lib-python/2.7.0/htmlentitydefs.py b/lib-python/2.7/htmlentitydefs.py
rename from lib-python/2.7.0/htmlentitydefs.py
rename to lib-python/2.7/htmlentitydefs.py
diff --git a/lib-python/2.7.0/htmllib.py b/lib-python/2.7/htmllib.py
rename from lib-python/2.7.0/htmllib.py
rename to lib-python/2.7/htmllib.py
diff --git a/lib-python/2.7.0/httplib.py b/lib-python/2.7/httplib.py
rename from lib-python/2.7.0/httplib.py
rename to lib-python/2.7/httplib.py
--- a/lib-python/2.7.0/httplib.py
+++ b/lib-python/2.7/httplib.py
@@ -879,6 +879,9 @@
host_enc = self.host.encode("ascii")
except UnicodeEncodeError:
host_enc = self.host.encode("idna")
+ # Wrap the IPv6 Host Header with [] (RFC 2732)
+ if host_enc.find(':') >= 0:
+ host_enc = "[" + host_enc + "]"
if self.port == self.default_port:
self.putheader('Host', host_enc)
else:
diff --git a/lib-python/2.7.0/idlelib/AutoComplete.py b/lib-python/2.7/idlelib/AutoComplete.py
rename from lib-python/2.7.0/idlelib/AutoComplete.py
rename to lib-python/2.7/idlelib/AutoComplete.py
diff --git a/lib-python/2.7.0/idlelib/AutoCompleteWindow.py b/lib-python/2.7/idlelib/AutoCompleteWindow.py
rename from lib-python/2.7.0/idlelib/AutoCompleteWindow.py
rename to lib-python/2.7/idlelib/AutoCompleteWindow.py
diff --git a/lib-python/2.7.0/idlelib/AutoExpand.py b/lib-python/2.7/idlelib/AutoExpand.py
rename from lib-python/2.7.0/idlelib/AutoExpand.py
rename to lib-python/2.7/idlelib/AutoExpand.py
diff --git a/lib-python/2.7.0/idlelib/Bindings.py b/lib-python/2.7/idlelib/Bindings.py
rename from lib-python/2.7.0/idlelib/Bindings.py
rename to lib-python/2.7/idlelib/Bindings.py
diff --git a/lib-python/2.7.0/idlelib/CREDITS.txt b/lib-python/2.7/idlelib/CREDITS.txt
rename from lib-python/2.7.0/idlelib/CREDITS.txt
rename to lib-python/2.7/idlelib/CREDITS.txt
diff --git a/lib-python/2.7.0/idlelib/CallTipWindow.py b/lib-python/2.7/idlelib/CallTipWindow.py
rename from lib-python/2.7.0/idlelib/CallTipWindow.py
rename to lib-python/2.7/idlelib/CallTipWindow.py
diff --git a/lib-python/2.7.0/idlelib/CallTips.py b/lib-python/2.7/idlelib/CallTips.py
rename from lib-python/2.7.0/idlelib/CallTips.py
rename to lib-python/2.7/idlelib/CallTips.py
diff --git a/lib-python/2.7.0/idlelib/ChangeLog b/lib-python/2.7/idlelib/ChangeLog
rename from lib-python/2.7.0/idlelib/ChangeLog
rename to lib-python/2.7/idlelib/ChangeLog
diff --git a/lib-python/2.7.0/idlelib/ClassBrowser.py b/lib-python/2.7/idlelib/ClassBrowser.py
rename from lib-python/2.7.0/idlelib/ClassBrowser.py
rename to lib-python/2.7/idlelib/ClassBrowser.py
diff --git a/lib-python/2.7.0/idlelib/CodeContext.py b/lib-python/2.7/idlelib/CodeContext.py
rename from lib-python/2.7.0/idlelib/CodeContext.py
rename to lib-python/2.7/idlelib/CodeContext.py
diff --git a/lib-python/2.7.0/idlelib/ColorDelegator.py b/lib-python/2.7/idlelib/ColorDelegator.py
rename from lib-python/2.7.0/idlelib/ColorDelegator.py
rename to lib-python/2.7/idlelib/ColorDelegator.py
diff --git a/lib-python/2.7.0/idlelib/Debugger.py b/lib-python/2.7/idlelib/Debugger.py
rename from lib-python/2.7.0/idlelib/Debugger.py
rename to lib-python/2.7/idlelib/Debugger.py
diff --git a/lib-python/2.7.0/idlelib/Delegator.py b/lib-python/2.7/idlelib/Delegator.py
rename from lib-python/2.7.0/idlelib/Delegator.py
rename to lib-python/2.7/idlelib/Delegator.py
diff --git a/lib-python/2.7.0/idlelib/EditorWindow.py b/lib-python/2.7/idlelib/EditorWindow.py
rename from lib-python/2.7.0/idlelib/EditorWindow.py
rename to lib-python/2.7/idlelib/EditorWindow.py
diff --git a/lib-python/2.7.0/idlelib/FileList.py b/lib-python/2.7/idlelib/FileList.py
rename from lib-python/2.7.0/idlelib/FileList.py
rename to lib-python/2.7/idlelib/FileList.py
diff --git a/lib-python/2.7.0/idlelib/FormatParagraph.py b/lib-python/2.7/idlelib/FormatParagraph.py
rename from lib-python/2.7.0/idlelib/FormatParagraph.py
rename to lib-python/2.7/idlelib/FormatParagraph.py
diff --git a/lib-python/2.7.0/idlelib/GrepDialog.py b/lib-python/2.7/idlelib/GrepDialog.py
rename from lib-python/2.7.0/idlelib/GrepDialog.py
rename to lib-python/2.7/idlelib/GrepDialog.py
diff --git a/lib-python/2.7.0/idlelib/HISTORY.txt b/lib-python/2.7/idlelib/HISTORY.txt
rename from lib-python/2.7.0/idlelib/HISTORY.txt
rename to lib-python/2.7/idlelib/HISTORY.txt
diff --git a/lib-python/2.7.0/idlelib/HyperParser.py b/lib-python/2.7/idlelib/HyperParser.py
rename from lib-python/2.7.0/idlelib/HyperParser.py
rename to lib-python/2.7/idlelib/HyperParser.py
diff --git a/lib-python/2.7.0/idlelib/IOBinding.py b/lib-python/2.7/idlelib/IOBinding.py
rename from lib-python/2.7.0/idlelib/IOBinding.py
rename to lib-python/2.7/idlelib/IOBinding.py
--- a/lib-python/2.7.0/idlelib/IOBinding.py
+++ b/lib-python/2.7/idlelib/IOBinding.py
@@ -521,8 +521,8 @@
savedialog = None
filetypes = [
- ("Python and text files", "*.py *.pyw *.txt", "TEXT"),
- ("All text files", "*", "TEXT"),
+ ("Python files", "*.py *.pyw", "TEXT"),
+ ("Text files", "*.txt", "TEXT"),
("All files", "*"),
]
diff --git a/lib-python/2.7.0/idlelib/Icons/folder.gif b/lib-python/2.7/idlelib/Icons/folder.gif
rename from lib-python/2.7.0/idlelib/Icons/folder.gif
rename to lib-python/2.7/idlelib/Icons/folder.gif
diff --git a/lib-python/2.7.0/idlelib/Icons/idle.icns b/lib-python/2.7/idlelib/Icons/idle.icns
rename from lib-python/2.7.0/idlelib/Icons/idle.icns
rename to lib-python/2.7/idlelib/Icons/idle.icns
diff --git a/lib-python/2.7.0/idlelib/Icons/minusnode.gif b/lib-python/2.7/idlelib/Icons/minusnode.gif
rename from lib-python/2.7.0/idlelib/Icons/minusnode.gif
rename to lib-python/2.7/idlelib/Icons/minusnode.gif
diff --git a/lib-python/2.7.0/idlelib/Icons/openfolder.gif b/lib-python/2.7/idlelib/Icons/openfolder.gif
rename from lib-python/2.7.0/idlelib/Icons/openfolder.gif
rename to lib-python/2.7/idlelib/Icons/openfolder.gif
diff --git a/lib-python/2.7.0/idlelib/Icons/plusnode.gif b/lib-python/2.7/idlelib/Icons/plusnode.gif
rename from lib-python/2.7.0/idlelib/Icons/plusnode.gif
rename to lib-python/2.7/idlelib/Icons/plusnode.gif
diff --git a/lib-python/2.7.0/idlelib/Icons/python.gif b/lib-python/2.7/idlelib/Icons/python.gif
rename from lib-python/2.7.0/idlelib/Icons/python.gif
rename to lib-python/2.7/idlelib/Icons/python.gif
diff --git a/lib-python/2.7.0/idlelib/Icons/tk.gif b/lib-python/2.7/idlelib/Icons/tk.gif
rename from lib-python/2.7.0/idlelib/Icons/tk.gif
rename to lib-python/2.7/idlelib/Icons/tk.gif
diff --git a/lib-python/2.7.0/idlelib/IdleHistory.py b/lib-python/2.7/idlelib/IdleHistory.py
rename from lib-python/2.7.0/idlelib/IdleHistory.py
rename to lib-python/2.7/idlelib/IdleHistory.py
diff --git a/lib-python/2.7.0/idlelib/MultiCall.py b/lib-python/2.7/idlelib/MultiCall.py
rename from lib-python/2.7.0/idlelib/MultiCall.py
rename to lib-python/2.7/idlelib/MultiCall.py
diff --git a/lib-python/2.7.0/idlelib/MultiStatusBar.py b/lib-python/2.7/idlelib/MultiStatusBar.py
rename from lib-python/2.7.0/idlelib/MultiStatusBar.py
rename to lib-python/2.7/idlelib/MultiStatusBar.py
diff --git a/lib-python/2.7.0/idlelib/NEWS.txt b/lib-python/2.7/idlelib/NEWS.txt
rename from lib-python/2.7.0/idlelib/NEWS.txt
rename to lib-python/2.7/idlelib/NEWS.txt
diff --git a/lib-python/2.7.0/idlelib/ObjectBrowser.py b/lib-python/2.7/idlelib/ObjectBrowser.py
rename from lib-python/2.7.0/idlelib/ObjectBrowser.py
rename to lib-python/2.7/idlelib/ObjectBrowser.py
diff --git a/lib-python/2.7.0/idlelib/OutputWindow.py b/lib-python/2.7/idlelib/OutputWindow.py
rename from lib-python/2.7.0/idlelib/OutputWindow.py
rename to lib-python/2.7/idlelib/OutputWindow.py
diff --git a/lib-python/2.7.0/idlelib/ParenMatch.py b/lib-python/2.7/idlelib/ParenMatch.py
rename from lib-python/2.7.0/idlelib/ParenMatch.py
rename to lib-python/2.7/idlelib/ParenMatch.py
diff --git a/lib-python/2.7.0/idlelib/PathBrowser.py b/lib-python/2.7/idlelib/PathBrowser.py
rename from lib-python/2.7.0/idlelib/PathBrowser.py
rename to lib-python/2.7/idlelib/PathBrowser.py
diff --git a/lib-python/2.7.0/idlelib/Percolator.py b/lib-python/2.7/idlelib/Percolator.py
rename from lib-python/2.7.0/idlelib/Percolator.py
rename to lib-python/2.7/idlelib/Percolator.py
diff --git a/lib-python/2.7.0/idlelib/PyParse.py b/lib-python/2.7/idlelib/PyParse.py
rename from lib-python/2.7.0/idlelib/PyParse.py
rename to lib-python/2.7/idlelib/PyParse.py
diff --git a/lib-python/2.7.0/idlelib/PyShell.py b/lib-python/2.7/idlelib/PyShell.py
rename from lib-python/2.7.0/idlelib/PyShell.py
rename to lib-python/2.7/idlelib/PyShell.py
diff --git a/lib-python/2.7.0/idlelib/README.txt b/lib-python/2.7/idlelib/README.txt
rename from lib-python/2.7.0/idlelib/README.txt
rename to lib-python/2.7/idlelib/README.txt
diff --git a/lib-python/2.7.0/idlelib/RemoteDebugger.py b/lib-python/2.7/idlelib/RemoteDebugger.py
rename from lib-python/2.7.0/idlelib/RemoteDebugger.py
rename to lib-python/2.7/idlelib/RemoteDebugger.py
diff --git a/lib-python/2.7.0/idlelib/RemoteObjectBrowser.py b/lib-python/2.7/idlelib/RemoteObjectBrowser.py
rename from lib-python/2.7.0/idlelib/RemoteObjectBrowser.py
rename to lib-python/2.7/idlelib/RemoteObjectBrowser.py
diff --git a/lib-python/2.7.0/idlelib/ReplaceDialog.py b/lib-python/2.7/idlelib/ReplaceDialog.py
rename from lib-python/2.7.0/idlelib/ReplaceDialog.py
rename to lib-python/2.7/idlelib/ReplaceDialog.py
diff --git a/lib-python/2.7.0/idlelib/RstripExtension.py b/lib-python/2.7/idlelib/RstripExtension.py
rename from lib-python/2.7.0/idlelib/RstripExtension.py
rename to lib-python/2.7/idlelib/RstripExtension.py
diff --git a/lib-python/2.7.0/idlelib/ScriptBinding.py b/lib-python/2.7/idlelib/ScriptBinding.py
rename from lib-python/2.7.0/idlelib/ScriptBinding.py
rename to lib-python/2.7/idlelib/ScriptBinding.py
diff --git a/lib-python/2.7.0/idlelib/ScrolledList.py b/lib-python/2.7/idlelib/ScrolledList.py
rename from lib-python/2.7.0/idlelib/ScrolledList.py
rename to lib-python/2.7/idlelib/ScrolledList.py
diff --git a/lib-python/2.7.0/idlelib/SearchDialog.py b/lib-python/2.7/idlelib/SearchDialog.py
rename from lib-python/2.7.0/idlelib/SearchDialog.py
rename to lib-python/2.7/idlelib/SearchDialog.py
diff --git a/lib-python/2.7.0/idlelib/SearchDialogBase.py b/lib-python/2.7/idlelib/SearchDialogBase.py
rename from lib-python/2.7.0/idlelib/SearchDialogBase.py
rename to lib-python/2.7/idlelib/SearchDialogBase.py
diff --git a/lib-python/2.7.0/idlelib/SearchEngine.py b/lib-python/2.7/idlelib/SearchEngine.py
rename from lib-python/2.7.0/idlelib/SearchEngine.py
rename to lib-python/2.7/idlelib/SearchEngine.py
diff --git a/lib-python/2.7.0/idlelib/StackViewer.py b/lib-python/2.7/idlelib/StackViewer.py
rename from lib-python/2.7.0/idlelib/StackViewer.py
rename to lib-python/2.7/idlelib/StackViewer.py
diff --git a/lib-python/2.7.0/idlelib/TODO.txt b/lib-python/2.7/idlelib/TODO.txt
rename from lib-python/2.7.0/idlelib/TODO.txt
rename to lib-python/2.7/idlelib/TODO.txt
diff --git a/lib-python/2.7.0/idlelib/ToolTip.py b/lib-python/2.7/idlelib/ToolTip.py
rename from lib-python/2.7.0/idlelib/ToolTip.py
rename to lib-python/2.7/idlelib/ToolTip.py
diff --git a/lib-python/2.7.0/idlelib/TreeWidget.py b/lib-python/2.7/idlelib/TreeWidget.py
rename from lib-python/2.7.0/idlelib/TreeWidget.py
rename to lib-python/2.7/idlelib/TreeWidget.py
diff --git a/lib-python/2.7.0/idlelib/UndoDelegator.py b/lib-python/2.7/idlelib/UndoDelegator.py
rename from lib-python/2.7.0/idlelib/UndoDelegator.py
rename to lib-python/2.7/idlelib/UndoDelegator.py
diff --git a/lib-python/2.7.0/idlelib/WidgetRedirector.py b/lib-python/2.7/idlelib/WidgetRedirector.py
rename from lib-python/2.7.0/idlelib/WidgetRedirector.py
rename to lib-python/2.7/idlelib/WidgetRedirector.py
diff --git a/lib-python/2.7.0/idlelib/WindowList.py b/lib-python/2.7/idlelib/WindowList.py
rename from lib-python/2.7.0/idlelib/WindowList.py
rename to lib-python/2.7/idlelib/WindowList.py
diff --git a/lib-python/2.7.0/idlelib/ZoomHeight.py b/lib-python/2.7/idlelib/ZoomHeight.py
rename from lib-python/2.7.0/idlelib/ZoomHeight.py
rename to lib-python/2.7/idlelib/ZoomHeight.py
diff --git a/lib-python/2.7.0/idlelib/__init__.py b/lib-python/2.7/idlelib/__init__.py
rename from lib-python/2.7.0/idlelib/__init__.py
rename to lib-python/2.7/idlelib/__init__.py
diff --git a/lib-python/2.7.0/idlelib/aboutDialog.py b/lib-python/2.7/idlelib/aboutDialog.py
rename from lib-python/2.7.0/idlelib/aboutDialog.py
rename to lib-python/2.7/idlelib/aboutDialog.py
diff --git a/lib-python/2.7.0/idlelib/config-extensions.def b/lib-python/2.7/idlelib/config-extensions.def
rename from lib-python/2.7.0/idlelib/config-extensions.def
rename to lib-python/2.7/idlelib/config-extensions.def
diff --git a/lib-python/2.7.0/idlelib/config-highlight.def b/lib-python/2.7/idlelib/config-highlight.def
rename from lib-python/2.7.0/idlelib/config-highlight.def
rename to lib-python/2.7/idlelib/config-highlight.def
diff --git a/lib-python/2.7.0/idlelib/config-keys.def b/lib-python/2.7/idlelib/config-keys.def
rename from lib-python/2.7.0/idlelib/config-keys.def
rename to lib-python/2.7/idlelib/config-keys.def
diff --git a/lib-python/2.7.0/idlelib/config-main.def b/lib-python/2.7/idlelib/config-main.def
rename from lib-python/2.7.0/idlelib/config-main.def
rename to lib-python/2.7/idlelib/config-main.def
diff --git a/lib-python/2.7.0/idlelib/configDialog.py b/lib-python/2.7/idlelib/configDialog.py
rename from lib-python/2.7.0/idlelib/configDialog.py
rename to lib-python/2.7/idlelib/configDialog.py
diff --git a/lib-python/2.7.0/idlelib/configHandler.py b/lib-python/2.7/idlelib/configHandler.py
rename from lib-python/2.7.0/idlelib/configHandler.py
rename to lib-python/2.7/idlelib/configHandler.py
diff --git a/lib-python/2.7.0/idlelib/configHelpSourceEdit.py b/lib-python/2.7/idlelib/configHelpSourceEdit.py
rename from lib-python/2.7.0/idlelib/configHelpSourceEdit.py
rename to lib-python/2.7/idlelib/configHelpSourceEdit.py
diff --git a/lib-python/2.7.0/idlelib/configSectionNameDialog.py b/lib-python/2.7/idlelib/configSectionNameDialog.py
rename from lib-python/2.7.0/idlelib/configSectionNameDialog.py
rename to lib-python/2.7/idlelib/configSectionNameDialog.py
diff --git a/lib-python/2.7.0/idlelib/dynOptionMenuWidget.py b/lib-python/2.7/idlelib/dynOptionMenuWidget.py
rename from lib-python/2.7.0/idlelib/dynOptionMenuWidget.py
rename to lib-python/2.7/idlelib/dynOptionMenuWidget.py
diff --git a/lib-python/2.7.0/idlelib/extend.txt b/lib-python/2.7/idlelib/extend.txt
rename from lib-python/2.7.0/idlelib/extend.txt
rename to lib-python/2.7/idlelib/extend.txt
diff --git a/lib-python/2.7.0/idlelib/help.txt b/lib-python/2.7/idlelib/help.txt
rename from lib-python/2.7.0/idlelib/help.txt
rename to lib-python/2.7/idlelib/help.txt
diff --git a/lib-python/2.7.0/idlelib/idle.bat b/lib-python/2.7/idlelib/idle.bat
rename from lib-python/2.7.0/idlelib/idle.bat
rename to lib-python/2.7/idlelib/idle.bat
--- a/lib-python/2.7.0/idlelib/idle.bat
+++ b/lib-python/2.7/idlelib/idle.bat
@@ -1,3 +1,4 @@
@echo off
-rem Working IDLE bat for Windows - uses start instead of absolute pathname
-start idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9
+rem Start IDLE using the appropriate Python interpreter
+set CURRDIR=%~dp0
+start "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/lib-python/2.7.0/idlelib/idle.py b/lib-python/2.7/idlelib/idle.py
rename from lib-python/2.7.0/idlelib/idle.py
rename to lib-python/2.7/idlelib/idle.py
diff --git a/lib-python/2.7.0/idlelib/idle.pyw b/lib-python/2.7/idlelib/idle.pyw
rename from lib-python/2.7.0/idlelib/idle.pyw
rename to lib-python/2.7/idlelib/idle.pyw
diff --git a/lib-python/2.7.0/idlelib/idlever.py b/lib-python/2.7/idlelib/idlever.py
rename from lib-python/2.7.0/idlelib/idlever.py
rename to lib-python/2.7/idlelib/idlever.py
--- a/lib-python/2.7.0/idlelib/idlever.py
+++ b/lib-python/2.7/idlelib/idlever.py
@@ -1,1 +1,1 @@
-IDLE_VERSION = "2.7.1a0"
+IDLE_VERSION = "2.7.1"
diff --git a/lib-python/2.7.0/idlelib/keybindingDialog.py b/lib-python/2.7/idlelib/keybindingDialog.py
rename from lib-python/2.7.0/idlelib/keybindingDialog.py
rename to lib-python/2.7/idlelib/keybindingDialog.py
diff --git a/lib-python/2.7.0/idlelib/macosxSupport.py b/lib-python/2.7/idlelib/macosxSupport.py
rename from lib-python/2.7.0/idlelib/macosxSupport.py
rename to lib-python/2.7/idlelib/macosxSupport.py
diff --git a/lib-python/2.7.0/idlelib/rpc.py b/lib-python/2.7/idlelib/rpc.py
rename from lib-python/2.7.0/idlelib/rpc.py
rename to lib-python/2.7/idlelib/rpc.py
diff --git a/lib-python/2.7.0/idlelib/run.py b/lib-python/2.7/idlelib/run.py
rename from lib-python/2.7.0/idlelib/run.py
rename to lib-python/2.7/idlelib/run.py
diff --git a/lib-python/2.7.0/idlelib/tabbedpages.py b/lib-python/2.7/idlelib/tabbedpages.py
rename from lib-python/2.7.0/idlelib/tabbedpages.py
rename to lib-python/2.7/idlelib/tabbedpages.py
diff --git a/lib-python/2.7.0/idlelib/testcode.py b/lib-python/2.7/idlelib/testcode.py
rename from lib-python/2.7.0/idlelib/testcode.py
rename to lib-python/2.7/idlelib/testcode.py
diff --git a/lib-python/2.7.0/idlelib/textView.py b/lib-python/2.7/idlelib/textView.py
rename from lib-python/2.7.0/idlelib/textView.py
rename to lib-python/2.7/idlelib/textView.py
diff --git a/lib-python/2.7.0/ihooks.py b/lib-python/2.7/ihooks.py
rename from lib-python/2.7.0/ihooks.py
rename to lib-python/2.7/ihooks.py
diff --git a/lib-python/2.7.0/imaplib.py b/lib-python/2.7/imaplib.py
rename from lib-python/2.7.0/imaplib.py
rename to lib-python/2.7/imaplib.py
--- a/lib-python/2.7.0/imaplib.py
+++ b/lib-python/2.7/imaplib.py
@@ -22,7 +22,7 @@
__version__ = "2.58"
-import binascii, random, re, socket, subprocess, sys, time
+import binascii, errno, random, re, socket, subprocess, sys, time
__all__ = ["IMAP4", "IMAP4_stream", "Internaldate2tuple",
"Int2AP", "ParseFlags", "Time2Internaldate"]
@@ -248,7 +248,14 @@
def shutdown(self):
"""Close I/O established in "open"."""
self.file.close()
- self.sock.close()
+ try:
+ self.sock.shutdown(socket.SHUT_RDWR)
+ except socket.error as e:
+ # The server might already have closed the connection
+ if e.errno != errno.ENOTCONN:
+ raise
+ finally:
+ self.sock.close()
def socket(self):
@@ -883,14 +890,17 @@
def _command_complete(self, name, tag):
- self._check_bye()
+ # BYE is expected after LOGOUT
+ if name != 'LOGOUT':
+ self._check_bye()
try:
typ, data = self._get_tagged_response(tag)
except self.abort, val:
raise self.abort('command: %s => %s' % (name, val))
except self.error, val:
raise self.error('command: %s => %s' % (name, val))
- self._check_bye()
+ if name != 'LOGOUT':
+ self._check_bye()
if typ == 'BAD':
raise self.error('%s command error: %s %s' % (name, typ, data))
return typ, data
diff --git a/lib-python/2.7.0/imghdr.py b/lib-python/2.7/imghdr.py
rename from lib-python/2.7.0/imghdr.py
rename to lib-python/2.7/imghdr.py
diff --git a/lib-python/2.7.0/importlib/__init__.py b/lib-python/2.7/importlib/__init__.py
rename from lib-python/2.7.0/importlib/__init__.py
rename to lib-python/2.7/importlib/__init__.py
diff --git a/lib-python/2.7.0/imputil.py b/lib-python/2.7/imputil.py
rename from lib-python/2.7.0/imputil.py
rename to lib-python/2.7/imputil.py
diff --git a/lib-python/2.7.0/inspect.py b/lib-python/2.7/inspect.py
rename from lib-python/2.7.0/inspect.py
rename to lib-python/2.7/inspect.py
diff --git a/lib-python/2.7.0/io.py b/lib-python/2.7/io.py
rename from lib-python/2.7.0/io.py
rename to lib-python/2.7/io.py
diff --git a/lib-python/2.7.0/json/__init__.py b/lib-python/2.7/json/__init__.py
rename from lib-python/2.7.0/json/__init__.py
rename to lib-python/2.7/json/__init__.py
diff --git a/lib-python/2.7.0/json/decoder.py b/lib-python/2.7/json/decoder.py
rename from lib-python/2.7.0/json/decoder.py
rename to lib-python/2.7/json/decoder.py
diff --git a/lib-python/2.7.0/json/encoder.py b/lib-python/2.7/json/encoder.py
rename from lib-python/2.7.0/json/encoder.py
rename to lib-python/2.7/json/encoder.py
diff --git a/lib-python/2.7.0/json/scanner.py b/lib-python/2.7/json/scanner.py
rename from lib-python/2.7.0/json/scanner.py
rename to lib-python/2.7/json/scanner.py
diff --git a/lib-python/2.7.0/json/tests/__init__.py b/lib-python/2.7/json/tests/__init__.py
rename from lib-python/2.7.0/json/tests/__init__.py
rename to lib-python/2.7/json/tests/__init__.py
diff --git a/lib-python/2.7.0/json/tests/test_check_circular.py b/lib-python/2.7/json/tests/test_check_circular.py
rename from lib-python/2.7.0/json/tests/test_check_circular.py
rename to lib-python/2.7/json/tests/test_check_circular.py
diff --git a/lib-python/2.7.0/json/tests/test_decode.py b/lib-python/2.7/json/tests/test_decode.py
rename from lib-python/2.7.0/json/tests/test_decode.py
rename to lib-python/2.7/json/tests/test_decode.py
--- a/lib-python/2.7.0/json/tests/test_decode.py
+++ b/lib-python/2.7/json/tests/test_decode.py
@@ -9,19 +9,19 @@
def test_decimal(self):
rval = json.loads('1.1', parse_float=decimal.Decimal)
self.assertTrue(isinstance(rval, decimal.Decimal))
- self.assertEquals(rval, decimal.Decimal('1.1'))
+ self.assertEqual(rval, decimal.Decimal('1.1'))
def test_float(self):
rval = json.loads('1', parse_int=float)
self.assertTrue(isinstance(rval, float))
- self.assertEquals(rval, 1.0)
+ self.assertEqual(rval, 1.0)
def test_decoder_optimizations(self):
# Several optimizations were made that skip over calls to
# the whitespace regex, so this test is designed to try and
# exercise the uncommon cases. The array cases are already covered.
rval = json.loads('{ "key" : "value" , "k":"v" }')
- self.assertEquals(rval, {"key":"value", "k":"v"})
+ self.assertEqual(rval, {"key":"value", "k":"v"})
def test_object_pairs_hook(self):
s = '{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}'
diff --git a/lib-python/2.7.0/json/tests/test_default.py b/lib-python/2.7/json/tests/test_default.py
rename from lib-python/2.7.0/json/tests/test_default.py
rename to lib-python/2.7/json/tests/test_default.py
--- a/lib-python/2.7.0/json/tests/test_default.py
+++ b/lib-python/2.7/json/tests/test_default.py
@@ -4,6 +4,6 @@
class TestDefault(TestCase):
def test_default(self):
- self.assertEquals(
+ self.assertEqual(
json.dumps(type, default=repr),
json.dumps(repr(type)))
diff --git a/lib-python/2.7.0/json/tests/test_dump.py b/lib-python/2.7/json/tests/test_dump.py
rename from lib-python/2.7.0/json/tests/test_dump.py
rename to lib-python/2.7/json/tests/test_dump.py
--- a/lib-python/2.7.0/json/tests/test_dump.py
+++ b/lib-python/2.7/json/tests/test_dump.py
@@ -7,15 +7,15 @@
def test_dump(self):
sio = StringIO()
json.dump({}, sio)
- self.assertEquals(sio.getvalue(), '{}')
+ self.assertEqual(sio.getvalue(), '{}')
def test_dumps(self):
- self.assertEquals(json.dumps({}), '{}')
+ self.assertEqual(json.dumps({}), '{}')
def test_encode_truefalse(self):
- self.assertEquals(json.dumps(
+ self.assertEqual(json.dumps(
{True: False, False: True}, sort_keys=True),
'{"false": true, "true": false}')
- self.assertEquals(json.dumps(
+ self.assertEqual(json.dumps(
{2: 3.0, 4.0: 5L, False: 1, 6L: True}, sort_keys=True),
'{"false": 1, "2": 3.0, "4.0": 5, "6": true}')
diff --git a/lib-python/2.7.0/json/tests/test_encode_basestring_ascii.py b/lib-python/2.7/json/tests/test_encode_basestring_ascii.py
rename from lib-python/2.7.0/json/tests/test_encode_basestring_ascii.py
rename to lib-python/2.7/json/tests/test_encode_basestring_ascii.py
--- a/lib-python/2.7.0/json/tests/test_encode_basestring_ascii.py
+++ b/lib-python/2.7/json/tests/test_encode_basestring_ascii.py
@@ -36,7 +36,7 @@
fname = encode_basestring_ascii.__name__
for input_string, expect in CASES:
result = encode_basestring_ascii(input_string)
- self.assertEquals(result, expect,
+ self.assertEqual(result, expect,
'{0!r} != {1!r} for {2}({3!r})'.format(
result, expect, fname, input_string))
diff --git a/lib-python/2.7.0/json/tests/test_fail.py b/lib-python/2.7/json/tests/test_fail.py
rename from lib-python/2.7.0/json/tests/test_fail.py
rename to lib-python/2.7/json/tests/test_fail.py
diff --git a/lib-python/2.7.0/json/tests/test_float.py b/lib-python/2.7/json/tests/test_float.py
rename from lib-python/2.7.0/json/tests/test_float.py
rename to lib-python/2.7/json/tests/test_float.py
--- a/lib-python/2.7.0/json/tests/test_float.py
+++ b/lib-python/2.7/json/tests/test_float.py
@@ -7,13 +7,13 @@
def test_floats(self):
for num in [1617161771.7650001, math.pi, math.pi**100,
math.pi**-100, 3.1]:
- self.assertEquals(float(json.dumps(num)), num)
- self.assertEquals(json.loads(json.dumps(num)), num)
- self.assertEquals(json.loads(unicode(json.dumps(num))), num)
+ self.assertEqual(float(json.dumps(num)), num)
+ self.assertEqual(json.loads(json.dumps(num)), num)
+ self.assertEqual(json.loads(unicode(json.dumps(num))), num)
def test_ints(self):
for num in [1, 1L, 1<<32, 1<<64]:
- self.assertEquals(json.dumps(num), str(num))
- self.assertEquals(int(json.dumps(num)), num)
- self.assertEquals(json.loads(json.dumps(num)), num)
- self.assertEquals(json.loads(unicode(json.dumps(num))), num)
+ self.assertEqual(json.dumps(num), str(num))
+ self.assertEqual(int(json.dumps(num)), num)
+ self.assertEqual(json.loads(json.dumps(num)), num)
+ self.assertEqual(json.loads(unicode(json.dumps(num))), num)
diff --git a/lib-python/2.7.0/json/tests/test_indent.py b/lib-python/2.7/json/tests/test_indent.py
rename from lib-python/2.7.0/json/tests/test_indent.py
rename to lib-python/2.7/json/tests/test_indent.py
--- a/lib-python/2.7.0/json/tests/test_indent.py
+++ b/lib-python/2.7/json/tests/test_indent.py
@@ -36,6 +36,6 @@
h1 = json.loads(d1)
h2 = json.loads(d2)
- self.assertEquals(h1, h)
- self.assertEquals(h2, h)
- self.assertEquals(d2, expect)
+ self.assertEqual(h1, h)
+ self.assertEqual(h2, h)
+ self.assertEqual(d2, expect)
diff --git a/lib-python/2.7.0/json/tests/test_pass1.py b/lib-python/2.7/json/tests/test_pass1.py
rename from lib-python/2.7.0/json/tests/test_pass1.py
rename to lib-python/2.7/json/tests/test_pass1.py
--- a/lib-python/2.7.0/json/tests/test_pass1.py
+++ b/lib-python/2.7/json/tests/test_pass1.py
@@ -67,7 +67,7 @@
# test in/out equivalence and parsing
res = json.loads(JSON)
out = json.dumps(res)
- self.assertEquals(res, json.loads(out))
+ self.assertEqual(res, json.loads(out))
try:
json.dumps(res, allow_nan=False)
except ValueError:
diff --git a/lib-python/2.7.0/json/tests/test_pass2.py b/lib-python/2.7/json/tests/test_pass2.py
rename from lib-python/2.7.0/json/tests/test_pass2.py
rename to lib-python/2.7/json/tests/test_pass2.py
--- a/lib-python/2.7.0/json/tests/test_pass2.py
+++ b/lib-python/2.7/json/tests/test_pass2.py
@@ -11,4 +11,4 @@
# test in/out equivalence and parsing
res = json.loads(JSON)
out = json.dumps(res)
- self.assertEquals(res, json.loads(out))
+ self.assertEqual(res, json.loads(out))
diff --git a/lib-python/2.7.0/json/tests/test_pass3.py b/lib-python/2.7/json/tests/test_pass3.py
rename from lib-python/2.7.0/json/tests/test_pass3.py
rename to lib-python/2.7/json/tests/test_pass3.py
--- a/lib-python/2.7.0/json/tests/test_pass3.py
+++ b/lib-python/2.7/json/tests/test_pass3.py
@@ -17,4 +17,4 @@
# test in/out equivalence and parsing
res = json.loads(JSON)
out = json.dumps(res)
- self.assertEquals(res, json.loads(out))
+ self.assertEqual(res, json.loads(out))
diff --git a/lib-python/2.7.0/json/tests/test_recursion.py b/lib-python/2.7/json/tests/test_recursion.py
rename from lib-python/2.7.0/json/tests/test_recursion.py
rename to lib-python/2.7/json/tests/test_recursion.py
--- a/lib-python/2.7.0/json/tests/test_recursion.py
+++ b/lib-python/2.7/json/tests/test_recursion.py
@@ -57,7 +57,7 @@
def test_defaultrecursion(self):
enc = RecursiveJSONEncoder()
- self.assertEquals(enc.encode(JSONTestObject), '"JSONTestObject"')
+ self.assertEqual(enc.encode(JSONTestObject), '"JSONTestObject"')
enc.recurse = True
try:
enc.encode(JSONTestObject)
diff --git a/lib-python/2.7.0/json/tests/test_scanstring.py b/lib-python/2.7/json/tests/test_scanstring.py
rename from lib-python/2.7.0/json/tests/test_scanstring.py
rename to lib-python/2.7/json/tests/test_scanstring.py
--- a/lib-python/2.7.0/json/tests/test_scanstring.py
+++ b/lib-python/2.7/json/tests/test_scanstring.py
@@ -13,92 +13,92 @@
self._test_scanstring(json.decoder.c_scanstring)
def _test_scanstring(self, scanstring):
- self.assertEquals(
+ self.assertEqual(
scanstring('"z\\ud834\\udd20x"', 1, None, True),
(u'z\U0001d120x', 16))
if sys.maxunicode == 65535:
- self.assertEquals(
+ self.assertEqual(
scanstring(u'"z\U0001d120x"', 1, None, True),
(u'z\U0001d120x', 6))
else:
- self.assertEquals(
+ self.assertEqual(
scanstring(u'"z\U0001d120x"', 1, None, True),
(u'z\U0001d120x', 5))
- self.assertEquals(
+ self.assertEqual(
scanstring('"\\u007b"', 1, None, True),
(u'{', 8))
- self.assertEquals(
+ self.assertEqual(
scanstring('"A JSON payload should be an object or array, not a string."', 1, None, True),
(u'A JSON payload should be an object or array, not a string.', 60))
- self.assertEquals(
+ self.assertEqual(
scanstring('["Unclosed array"', 2, None, True),
(u'Unclosed array', 17))
- self.assertEquals(
+ self.assertEqual(
scanstring('["extra comma",]', 2, None, True),
(u'extra comma', 14))
- self.assertEquals(
+ self.assertEqual(
scanstring('["double extra comma",,]', 2, None, True),
(u'double extra comma', 21))
- self.assertEquals(
+ self.assertEqual(
scanstring('["Comma after the close"],', 2, None, True),
(u'Comma after the close', 24))
- self.assertEquals(
+ self.assertEqual(
scanstring('["Extra close"]]', 2, None, True),
(u'Extra close', 14))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Extra comma": true,}', 2, None, True),
(u'Extra comma', 14))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Extra value after close": true} "misplaced quoted value"', 2, None, True),
(u'Extra value after close', 26))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Illegal expression": 1 + 2}', 2, None, True),
(u'Illegal expression', 21))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Illegal invocation": alert()}', 2, None, True),
(u'Illegal invocation', 21))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Numbers cannot have leading zeroes": 013}', 2, None, True),
(u'Numbers cannot have leading zeroes', 37))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Numbers cannot be hex": 0x14}', 2, None, True),
(u'Numbers cannot be hex', 24))
- self.assertEquals(
+ self.assertEqual(
scanstring('[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]', 21, None, True),
(u'Too deep', 30))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Missing colon" null}', 2, None, True),
(u'Missing colon', 16))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Double colon":: null}', 2, None, True),
(u'Double colon', 15))
- self.assertEquals(
+ self.assertEqual(
scanstring('{"Comma instead of colon", null}', 2, None, True),
(u'Comma instead of colon', 25))
- self.assertEquals(
+ self.assertEqual(
scanstring('["Colon instead of comma": false]', 2, None, True),
(u'Colon instead of comma', 25))
- self.assertEquals(
+ self.assertEqual(
scanstring('["Bad value", truth]', 2, None, True),
(u'Bad value', 12))
diff --git a/lib-python/2.7.0/json/tests/test_separators.py b/lib-python/2.7/json/tests/test_separators.py
rename from lib-python/2.7.0/json/tests/test_separators.py
rename to lib-python/2.7/json/tests/test_separators.py
--- a/lib-python/2.7.0/json/tests/test_separators.py
+++ b/lib-python/2.7/json/tests/test_separators.py
@@ -37,6 +37,6 @@
h1 = json.loads(d1)
h2 = json.loads(d2)
- self.assertEquals(h1, h)
- self.assertEquals(h2, h)
- self.assertEquals(d2, expect)
+ self.assertEqual(h1, h)
+ self.assertEqual(h2, h)
+ self.assertEqual(d2, expect)
diff --git a/lib-python/2.7.0/json/tests/test_speedups.py b/lib-python/2.7/json/tests/test_speedups.py
rename from lib-python/2.7.0/json/tests/test_speedups.py
rename to lib-python/2.7/json/tests/test_speedups.py
--- a/lib-python/2.7.0/json/tests/test_speedups.py
+++ b/lib-python/2.7/json/tests/test_speedups.py
@@ -5,11 +5,11 @@
class TestSpeedups(TestCase):
def test_scanstring(self):
- self.assertEquals(decoder.scanstring.__module__, "_json")
+ self.assertEqual(decoder.scanstring.__module__, "_json")
self.assertTrue(decoder.scanstring is decoder.c_scanstring)
def test_encode_basestring_ascii(self):
- self.assertEquals(encoder.encode_basestring_ascii.__module__, "_json")
+ self.assertEqual(encoder.encode_basestring_ascii.__module__, "_json")
self.assertTrue(encoder.encode_basestring_ascii is
encoder.c_encode_basestring_ascii)
diff --git a/lib-python/2.7.0/json/tests/test_unicode.py b/lib-python/2.7/json/tests/test_unicode.py
rename from lib-python/2.7.0/json/tests/test_unicode.py
rename to lib-python/2.7/json/tests/test_unicode.py
--- a/lib-python/2.7.0/json/tests/test_unicode.py
+++ b/lib-python/2.7/json/tests/test_unicode.py
@@ -10,50 +10,50 @@
s = u.encode('utf-8')
ju = encoder.encode(u)
js = encoder.encode(s)
- self.assertEquals(ju, js)
+ self.assertEqual(ju, js)
def test_encoding2(self):
u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
s = u.encode('utf-8')
ju = json.dumps(u, encoding='utf-8')
js = json.dumps(s, encoding='utf-8')
- self.assertEquals(ju, js)
+ self.assertEqual(ju, js)
def test_encoding3(self):
u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
j = json.dumps(u)
- self.assertEquals(j, '"\\u03b1\\u03a9"')
+ self.assertEqual(j, '"\\u03b1\\u03a9"')
def test_encoding4(self):
u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
j = json.dumps([u])
- self.assertEquals(j, '["\\u03b1\\u03a9"]')
+ self.assertEqual(j, '["\\u03b1\\u03a9"]')
def test_encoding5(self):
u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
j = json.dumps(u, ensure_ascii=False)
- self.assertEquals(j, u'"{0}"'.format(u))
+ self.assertEqual(j, u'"{0}"'.format(u))
def test_encoding6(self):
u = u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK CAPITAL LETTER OMEGA}'
j = json.dumps([u], ensure_ascii=False)
- self.assertEquals(j, u'["{0}"]'.format(u))
+ self.assertEqual(j, u'["{0}"]'.format(u))
def test_big_unicode_encode(self):
u = u'\U0001d120'
- self.assertEquals(json.dumps(u), '"\\ud834\\udd20"')
- self.assertEquals(json.dumps(u, ensure_ascii=False), u'"\U0001d120"')
+ self.assertEqual(json.dumps(u), '"\\ud834\\udd20"')
+ self.assertEqual(json.dumps(u, ensure_ascii=False), u'"\U0001d120"')
def test_big_unicode_decode(self):
u = u'z\U0001d120x'
- self.assertEquals(json.loads('"' + u + '"'), u)
- self.assertEquals(json.loads('"z\\ud834\\udd20x"'), u)
+ self.assertEqual(json.loads('"' + u + '"'), u)
+ self.assertEqual(json.loads('"z\\ud834\\udd20x"'), u)
def test_unicode_decode(self):
for i in range(0, 0xd7ff):
u = unichr(i)
s = '"\\u{0:04x}"'.format(i)
- self.assertEquals(json.loads(s), u)
+ self.assertEqual(json.loads(s), u)
def test_object_pairs_hook_with_unicode(self):
s = u'{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}'
@@ -71,12 +71,12 @@
OrderedDict(p))
def test_default_encoding(self):
- self.assertEquals(json.loads(u'{"a": "\xe9"}'.encode('utf-8')),
+ self.assertEqual(json.loads(u'{"a": "\xe9"}'.encode('utf-8')),
{'a': u'\xe9'})
def test_unicode_preservation(self):
- self.assertEquals(type(json.loads(u'""')), unicode)
- self.assertEquals(type(json.loads(u'"a"')), unicode)
- self.assertEquals(type(json.loads(u'["a"]')[0]), unicode)
+ self.assertEqual(type(json.loads(u'""')), unicode)
+ self.assertEqual(type(json.loads(u'"a"')), unicode)
+ self.assertEqual(type(json.loads(u'["a"]')[0]), unicode)
# Issue 10038.
- self.assertEquals(type(json.loads('"foo"')), unicode)
+ self.assertEqual(type(json.loads('"foo"')), unicode)
diff --git a/lib-python/2.7.0/json/tool.py b/lib-python/2.7/json/tool.py
rename from lib-python/2.7.0/json/tool.py
rename to lib-python/2.7/json/tool.py
diff --git a/lib-python/2.7.0/keyword.py b/lib-python/2.7/keyword.py
rename from lib-python/2.7.0/keyword.py
rename to lib-python/2.7/keyword.py
diff --git a/lib-python/2.7.0/lib-tk/Canvas.py b/lib-python/2.7/lib-tk/Canvas.py
rename from lib-python/2.7.0/lib-tk/Canvas.py
rename to lib-python/2.7/lib-tk/Canvas.py
diff --git a/lib-python/2.7.0/lib-tk/Dialog.py b/lib-python/2.7/lib-tk/Dialog.py
rename from lib-python/2.7.0/lib-tk/Dialog.py
rename to lib-python/2.7/lib-tk/Dialog.py
diff --git a/lib-python/2.7.0/lib-tk/FileDialog.py b/lib-python/2.7/lib-tk/FileDialog.py
rename from lib-python/2.7.0/lib-tk/FileDialog.py
rename to lib-python/2.7/lib-tk/FileDialog.py
diff --git a/lib-python/2.7.0/lib-tk/FixTk.py b/lib-python/2.7/lib-tk/FixTk.py
rename from lib-python/2.7.0/lib-tk/FixTk.py
rename to lib-python/2.7/lib-tk/FixTk.py
diff --git a/lib-python/2.7.0/lib-tk/ScrolledText.py b/lib-python/2.7/lib-tk/ScrolledText.py
rename from lib-python/2.7.0/lib-tk/ScrolledText.py
rename to lib-python/2.7/lib-tk/ScrolledText.py
diff --git a/lib-python/2.7.0/lib-tk/SimpleDialog.py b/lib-python/2.7/lib-tk/SimpleDialog.py
rename from lib-python/2.7.0/lib-tk/SimpleDialog.py
rename to lib-python/2.7/lib-tk/SimpleDialog.py
diff --git a/lib-python/2.7.0/lib-tk/Tix.py b/lib-python/2.7/lib-tk/Tix.py
rename from lib-python/2.7.0/lib-tk/Tix.py
rename to lib-python/2.7/lib-tk/Tix.py
--- a/lib-python/2.7.0/lib-tk/Tix.py
+++ b/lib-python/2.7/lib-tk/Tix.py
@@ -1,6 +1,6 @@
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
-# $Id: Tix.py 81008 2010-05-08 20:59:42Z benjamin.peterson $
+# $Id$
#
# Tix.py -- Tix widget wrappers.
#
diff --git a/lib-python/2.7.0/lib-tk/Tkconstants.py b/lib-python/2.7/lib-tk/Tkconstants.py
rename from lib-python/2.7.0/lib-tk/Tkconstants.py
rename to lib-python/2.7/lib-tk/Tkconstants.py
diff --git a/lib-python/2.7.0/lib-tk/Tkdnd.py b/lib-python/2.7/lib-tk/Tkdnd.py
rename from lib-python/2.7.0/lib-tk/Tkdnd.py
rename to lib-python/2.7/lib-tk/Tkdnd.py
diff --git a/lib-python/2.7.0/lib-tk/Tkinter.py b/lib-python/2.7/lib-tk/Tkinter.py
rename from lib-python/2.7.0/lib-tk/Tkinter.py
rename to lib-python/2.7/lib-tk/Tkinter.py
--- a/lib-python/2.7.0/lib-tk/Tkinter.py
+++ b/lib-python/2.7/lib-tk/Tkinter.py
@@ -30,7 +30,7 @@
tk.mainloop()
"""
-__version__ = "$Revision: 81008 $"
+__version__ = "$Revision$"
import sys
if sys.platform == "win32":
diff --git a/lib-python/2.7.0/lib-tk/test/README b/lib-python/2.7/lib-tk/test/README
rename from lib-python/2.7.0/lib-tk/test/README
rename to lib-python/2.7/lib-tk/test/README
diff --git a/lib-python/2.7.0/lib-tk/test/runtktests.py b/lib-python/2.7/lib-tk/test/runtktests.py
rename from lib-python/2.7.0/lib-tk/test/runtktests.py
rename to lib-python/2.7/lib-tk/test/runtktests.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_tkinter/__init__.py b/lib-python/2.7/lib-tk/test/test_tkinter/__init__.py
rename from lib-python/2.7.0/lib-tk/test/test_tkinter/__init__.py
rename to lib-python/2.7/lib-tk/test/test_tkinter/__init__.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_tkinter/test_loadtk.py b/lib-python/2.7/lib-tk/test/test_tkinter/test_loadtk.py
rename from lib-python/2.7.0/lib-tk/test/test_tkinter/test_loadtk.py
rename to lib-python/2.7/lib-tk/test/test_tkinter/test_loadtk.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_tkinter/test_text.py b/lib-python/2.7/lib-tk/test/test_tkinter/test_text.py
rename from lib-python/2.7.0/lib-tk/test/test_tkinter/test_text.py
rename to lib-python/2.7/lib-tk/test/test_tkinter/test_text.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/__init__.py b/lib-python/2.7/lib-tk/test/test_ttk/__init__.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/__init__.py
rename to lib-python/2.7/lib-tk/test/test_ttk/__init__.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/support.py b/lib-python/2.7/lib-tk/test/test_ttk/support.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/support.py
rename to lib-python/2.7/lib-tk/test/test_ttk/support.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/test_extensions.py b/lib-python/2.7/lib-tk/test/test_ttk/test_extensions.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/test_extensions.py
rename to lib-python/2.7/lib-tk/test/test_ttk/test_extensions.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/test_functions.py b/lib-python/2.7/lib-tk/test/test_ttk/test_functions.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/test_functions.py
rename to lib-python/2.7/lib-tk/test/test_ttk/test_functions.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/test_style.py b/lib-python/2.7/lib-tk/test/test_ttk/test_style.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/test_style.py
rename to lib-python/2.7/lib-tk/test/test_ttk/test_style.py
diff --git a/lib-python/2.7.0/lib-tk/test/test_ttk/test_widgets.py b/lib-python/2.7/lib-tk/test/test_ttk/test_widgets.py
rename from lib-python/2.7.0/lib-tk/test/test_ttk/test_widgets.py
rename to lib-python/2.7/lib-tk/test/test_ttk/test_widgets.py
diff --git a/lib-python/2.7.0/lib-tk/tkColorChooser.py b/lib-python/2.7/lib-tk/tkColorChooser.py
rename from lib-python/2.7.0/lib-tk/tkColorChooser.py
rename to lib-python/2.7/lib-tk/tkColorChooser.py
diff --git a/lib-python/2.7.0/lib-tk/tkCommonDialog.py b/lib-python/2.7/lib-tk/tkCommonDialog.py
rename from lib-python/2.7.0/lib-tk/tkCommonDialog.py
rename to lib-python/2.7/lib-tk/tkCommonDialog.py
diff --git a/lib-python/2.7.0/lib-tk/tkFileDialog.py b/lib-python/2.7/lib-tk/tkFileDialog.py
rename from lib-python/2.7.0/lib-tk/tkFileDialog.py
rename to lib-python/2.7/lib-tk/tkFileDialog.py
diff --git a/lib-python/2.7.0/lib-tk/tkFont.py b/lib-python/2.7/lib-tk/tkFont.py
rename from lib-python/2.7.0/lib-tk/tkFont.py
rename to lib-python/2.7/lib-tk/tkFont.py
diff --git a/lib-python/2.7.0/lib-tk/tkMessageBox.py b/lib-python/2.7/lib-tk/tkMessageBox.py
rename from lib-python/2.7.0/lib-tk/tkMessageBox.py
rename to lib-python/2.7/lib-tk/tkMessageBox.py
diff --git a/lib-python/2.7.0/lib-tk/tkSimpleDialog.py b/lib-python/2.7/lib-tk/tkSimpleDialog.py
rename from lib-python/2.7.0/lib-tk/tkSimpleDialog.py
rename to lib-python/2.7/lib-tk/tkSimpleDialog.py
diff --git a/lib-python/2.7.0/lib-tk/ttk.py b/lib-python/2.7/lib-tk/ttk.py
rename from lib-python/2.7.0/lib-tk/ttk.py
rename to lib-python/2.7/lib-tk/ttk.py
diff --git a/lib-python/2.7.0/lib-tk/turtle.py b/lib-python/2.7/lib-tk/turtle.py
rename from lib-python/2.7.0/lib-tk/turtle.py
rename to lib-python/2.7/lib-tk/turtle.py
diff --git a/lib-python/2.7.0/lib2to3/Grammar.txt b/lib-python/2.7/lib2to3/Grammar.txt
rename from lib-python/2.7.0/lib2to3/Grammar.txt
rename to lib-python/2.7/lib2to3/Grammar.txt
diff --git a/lib-python/2.7.0/lib2to3/PatternGrammar.txt b/lib-python/2.7/lib2to3/PatternGrammar.txt
rename from lib-python/2.7.0/lib2to3/PatternGrammar.txt
rename to lib-python/2.7/lib2to3/PatternGrammar.txt
diff --git a/lib-python/2.7.0/lib2to3/__init__.py b/lib-python/2.7/lib2to3/__init__.py
rename from lib-python/2.7.0/lib2to3/__init__.py
rename to lib-python/2.7/lib2to3/__init__.py
diff --git a/lib-python/2.7.0/lib2to3/btm_matcher.py b/lib-python/2.7/lib2to3/btm_matcher.py
rename from lib-python/2.7.0/lib2to3/btm_matcher.py
rename to lib-python/2.7/lib2to3/btm_matcher.py
diff --git a/lib-python/2.7.0/lib2to3/btm_utils.py b/lib-python/2.7/lib2to3/btm_utils.py
rename from lib-python/2.7.0/lib2to3/btm_utils.py
rename to lib-python/2.7/lib2to3/btm_utils.py
diff --git a/lib-python/2.7.0/lib2to3/fixer_base.py b/lib-python/2.7/lib2to3/fixer_base.py
rename from lib-python/2.7.0/lib2to3/fixer_base.py
rename to lib-python/2.7/lib2to3/fixer_base.py
diff --git a/lib-python/2.7.0/lib2to3/fixer_util.py b/lib-python/2.7/lib2to3/fixer_util.py
rename from lib-python/2.7.0/lib2to3/fixer_util.py
rename to lib-python/2.7/lib2to3/fixer_util.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/__init__.py b/lib-python/2.7/lib2to3/fixes/__init__.py
rename from lib-python/2.7.0/lib2to3/fixes/__init__.py
rename to lib-python/2.7/lib2to3/fixes/__init__.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_apply.py b/lib-python/2.7/lib2to3/fixes/fix_apply.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_apply.py
rename to lib-python/2.7/lib2to3/fixes/fix_apply.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_basestring.py b/lib-python/2.7/lib2to3/fixes/fix_basestring.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_basestring.py
rename to lib-python/2.7/lib2to3/fixes/fix_basestring.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_buffer.py b/lib-python/2.7/lib2to3/fixes/fix_buffer.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_buffer.py
rename to lib-python/2.7/lib2to3/fixes/fix_buffer.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_callable.py b/lib-python/2.7/lib2to3/fixes/fix_callable.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_callable.py
rename to lib-python/2.7/lib2to3/fixes/fix_callable.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_dict.py b/lib-python/2.7/lib2to3/fixes/fix_dict.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_dict.py
rename to lib-python/2.7/lib2to3/fixes/fix_dict.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_except.py b/lib-python/2.7/lib2to3/fixes/fix_except.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_except.py
rename to lib-python/2.7/lib2to3/fixes/fix_except.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_exec.py b/lib-python/2.7/lib2to3/fixes/fix_exec.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_exec.py
rename to lib-python/2.7/lib2to3/fixes/fix_exec.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_execfile.py b/lib-python/2.7/lib2to3/fixes/fix_execfile.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_execfile.py
rename to lib-python/2.7/lib2to3/fixes/fix_execfile.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_exitfunc.py b/lib-python/2.7/lib2to3/fixes/fix_exitfunc.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_exitfunc.py
rename to lib-python/2.7/lib2to3/fixes/fix_exitfunc.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_filter.py b/lib-python/2.7/lib2to3/fixes/fix_filter.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_filter.py
rename to lib-python/2.7/lib2to3/fixes/fix_filter.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_funcattrs.py b/lib-python/2.7/lib2to3/fixes/fix_funcattrs.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_funcattrs.py
rename to lib-python/2.7/lib2to3/fixes/fix_funcattrs.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_future.py b/lib-python/2.7/lib2to3/fixes/fix_future.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_future.py
rename to lib-python/2.7/lib2to3/fixes/fix_future.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_getcwdu.py b/lib-python/2.7/lib2to3/fixes/fix_getcwdu.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_getcwdu.py
rename to lib-python/2.7/lib2to3/fixes/fix_getcwdu.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_has_key.py b/lib-python/2.7/lib2to3/fixes/fix_has_key.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_has_key.py
rename to lib-python/2.7/lib2to3/fixes/fix_has_key.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_idioms.py b/lib-python/2.7/lib2to3/fixes/fix_idioms.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_idioms.py
rename to lib-python/2.7/lib2to3/fixes/fix_idioms.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_import.py b/lib-python/2.7/lib2to3/fixes/fix_import.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_import.py
rename to lib-python/2.7/lib2to3/fixes/fix_import.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_imports.py b/lib-python/2.7/lib2to3/fixes/fix_imports.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_imports.py
rename to lib-python/2.7/lib2to3/fixes/fix_imports.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_imports2.py b/lib-python/2.7/lib2to3/fixes/fix_imports2.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_imports2.py
rename to lib-python/2.7/lib2to3/fixes/fix_imports2.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_input.py b/lib-python/2.7/lib2to3/fixes/fix_input.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_input.py
rename to lib-python/2.7/lib2to3/fixes/fix_input.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_intern.py b/lib-python/2.7/lib2to3/fixes/fix_intern.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_intern.py
rename to lib-python/2.7/lib2to3/fixes/fix_intern.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_isinstance.py b/lib-python/2.7/lib2to3/fixes/fix_isinstance.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_isinstance.py
rename to lib-python/2.7/lib2to3/fixes/fix_isinstance.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_itertools.py b/lib-python/2.7/lib2to3/fixes/fix_itertools.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_itertools.py
rename to lib-python/2.7/lib2to3/fixes/fix_itertools.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_itertools_imports.py b/lib-python/2.7/lib2to3/fixes/fix_itertools_imports.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_itertools_imports.py
rename to lib-python/2.7/lib2to3/fixes/fix_itertools_imports.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_long.py b/lib-python/2.7/lib2to3/fixes/fix_long.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_long.py
rename to lib-python/2.7/lib2to3/fixes/fix_long.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_map.py b/lib-python/2.7/lib2to3/fixes/fix_map.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_map.py
rename to lib-python/2.7/lib2to3/fixes/fix_map.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_metaclass.py b/lib-python/2.7/lib2to3/fixes/fix_metaclass.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_metaclass.py
rename to lib-python/2.7/lib2to3/fixes/fix_metaclass.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_methodattrs.py b/lib-python/2.7/lib2to3/fixes/fix_methodattrs.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_methodattrs.py
rename to lib-python/2.7/lib2to3/fixes/fix_methodattrs.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_ne.py b/lib-python/2.7/lib2to3/fixes/fix_ne.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_ne.py
rename to lib-python/2.7/lib2to3/fixes/fix_ne.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_next.py b/lib-python/2.7/lib2to3/fixes/fix_next.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_next.py
rename to lib-python/2.7/lib2to3/fixes/fix_next.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_nonzero.py b/lib-python/2.7/lib2to3/fixes/fix_nonzero.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_nonzero.py
rename to lib-python/2.7/lib2to3/fixes/fix_nonzero.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_numliterals.py b/lib-python/2.7/lib2to3/fixes/fix_numliterals.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_numliterals.py
rename to lib-python/2.7/lib2to3/fixes/fix_numliterals.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_operator.py b/lib-python/2.7/lib2to3/fixes/fix_operator.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_operator.py
rename to lib-python/2.7/lib2to3/fixes/fix_operator.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_paren.py b/lib-python/2.7/lib2to3/fixes/fix_paren.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_paren.py
rename to lib-python/2.7/lib2to3/fixes/fix_paren.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_print.py b/lib-python/2.7/lib2to3/fixes/fix_print.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_print.py
rename to lib-python/2.7/lib2to3/fixes/fix_print.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_raise.py b/lib-python/2.7/lib2to3/fixes/fix_raise.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_raise.py
rename to lib-python/2.7/lib2to3/fixes/fix_raise.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_raw_input.py b/lib-python/2.7/lib2to3/fixes/fix_raw_input.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_raw_input.py
rename to lib-python/2.7/lib2to3/fixes/fix_raw_input.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_reduce.py b/lib-python/2.7/lib2to3/fixes/fix_reduce.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_reduce.py
rename to lib-python/2.7/lib2to3/fixes/fix_reduce.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_renames.py b/lib-python/2.7/lib2to3/fixes/fix_renames.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_renames.py
rename to lib-python/2.7/lib2to3/fixes/fix_renames.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_repr.py b/lib-python/2.7/lib2to3/fixes/fix_repr.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_repr.py
rename to lib-python/2.7/lib2to3/fixes/fix_repr.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_set_literal.py b/lib-python/2.7/lib2to3/fixes/fix_set_literal.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_set_literal.py
rename to lib-python/2.7/lib2to3/fixes/fix_set_literal.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_standarderror.py b/lib-python/2.7/lib2to3/fixes/fix_standarderror.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_standarderror.py
rename to lib-python/2.7/lib2to3/fixes/fix_standarderror.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_sys_exc.py b/lib-python/2.7/lib2to3/fixes/fix_sys_exc.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_sys_exc.py
rename to lib-python/2.7/lib2to3/fixes/fix_sys_exc.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_throw.py b/lib-python/2.7/lib2to3/fixes/fix_throw.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_throw.py
rename to lib-python/2.7/lib2to3/fixes/fix_throw.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_tuple_params.py b/lib-python/2.7/lib2to3/fixes/fix_tuple_params.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_tuple_params.py
rename to lib-python/2.7/lib2to3/fixes/fix_tuple_params.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_types.py b/lib-python/2.7/lib2to3/fixes/fix_types.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_types.py
rename to lib-python/2.7/lib2to3/fixes/fix_types.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_unicode.py b/lib-python/2.7/lib2to3/fixes/fix_unicode.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_unicode.py
rename to lib-python/2.7/lib2to3/fixes/fix_unicode.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_urllib.py b/lib-python/2.7/lib2to3/fixes/fix_urllib.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_urllib.py
rename to lib-python/2.7/lib2to3/fixes/fix_urllib.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_ws_comma.py b/lib-python/2.7/lib2to3/fixes/fix_ws_comma.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_ws_comma.py
rename to lib-python/2.7/lib2to3/fixes/fix_ws_comma.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_xrange.py b/lib-python/2.7/lib2to3/fixes/fix_xrange.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_xrange.py
rename to lib-python/2.7/lib2to3/fixes/fix_xrange.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_xreadlines.py b/lib-python/2.7/lib2to3/fixes/fix_xreadlines.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_xreadlines.py
rename to lib-python/2.7/lib2to3/fixes/fix_xreadlines.py
diff --git a/lib-python/2.7.0/lib2to3/fixes/fix_zip.py b/lib-python/2.7/lib2to3/fixes/fix_zip.py
rename from lib-python/2.7.0/lib2to3/fixes/fix_zip.py
rename to lib-python/2.7/lib2to3/fixes/fix_zip.py
diff --git a/lib-python/2.7.0/lib2to3/main.py b/lib-python/2.7/lib2to3/main.py
rename from lib-python/2.7.0/lib2to3/main.py
rename to lib-python/2.7/lib2to3/main.py
diff --git a/lib-python/2.7.0/lib2to3/patcomp.py b/lib-python/2.7/lib2to3/patcomp.py
rename from lib-python/2.7.0/lib2to3/patcomp.py
rename to lib-python/2.7/lib2to3/patcomp.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/__init__.py b/lib-python/2.7/lib2to3/pgen2/__init__.py
rename from lib-python/2.7.0/lib2to3/pgen2/__init__.py
rename to lib-python/2.7/lib2to3/pgen2/__init__.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/conv.py b/lib-python/2.7/lib2to3/pgen2/conv.py
rename from lib-python/2.7.0/lib2to3/pgen2/conv.py
rename to lib-python/2.7/lib2to3/pgen2/conv.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/driver.py b/lib-python/2.7/lib2to3/pgen2/driver.py
rename from lib-python/2.7.0/lib2to3/pgen2/driver.py
rename to lib-python/2.7/lib2to3/pgen2/driver.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/grammar.py b/lib-python/2.7/lib2to3/pgen2/grammar.py
rename from lib-python/2.7.0/lib2to3/pgen2/grammar.py
rename to lib-python/2.7/lib2to3/pgen2/grammar.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/literals.py b/lib-python/2.7/lib2to3/pgen2/literals.py
rename from lib-python/2.7.0/lib2to3/pgen2/literals.py
rename to lib-python/2.7/lib2to3/pgen2/literals.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/parse.py b/lib-python/2.7/lib2to3/pgen2/parse.py
rename from lib-python/2.7.0/lib2to3/pgen2/parse.py
rename to lib-python/2.7/lib2to3/pgen2/parse.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/pgen.py b/lib-python/2.7/lib2to3/pgen2/pgen.py
rename from lib-python/2.7.0/lib2to3/pgen2/pgen.py
rename to lib-python/2.7/lib2to3/pgen2/pgen.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/token.py b/lib-python/2.7/lib2to3/pgen2/token.py
rename from lib-python/2.7.0/lib2to3/pgen2/token.py
rename to lib-python/2.7/lib2to3/pgen2/token.py
diff --git a/lib-python/2.7.0/lib2to3/pgen2/tokenize.py b/lib-python/2.7/lib2to3/pgen2/tokenize.py
rename from lib-python/2.7.0/lib2to3/pgen2/tokenize.py
rename to lib-python/2.7/lib2to3/pgen2/tokenize.py
diff --git a/lib-python/2.7.0/lib2to3/pygram.py b/lib-python/2.7/lib2to3/pygram.py
rename from lib-python/2.7.0/lib2to3/pygram.py
rename to lib-python/2.7/lib2to3/pygram.py
diff --git a/lib-python/2.7.0/lib2to3/pytree.py b/lib-python/2.7/lib2to3/pytree.py
rename from lib-python/2.7.0/lib2to3/pytree.py
rename to lib-python/2.7/lib2to3/pytree.py
diff --git a/lib-python/2.7.0/lib2to3/refactor.py b/lib-python/2.7/lib2to3/refactor.py
rename from lib-python/2.7.0/lib2to3/refactor.py
rename to lib-python/2.7/lib2to3/refactor.py
diff --git a/lib-python/2.7.0/lib2to3/tests/__init__.py b/lib-python/2.7/lib2to3/tests/__init__.py
rename from lib-python/2.7.0/lib2to3/tests/__init__.py
rename to lib-python/2.7/lib2to3/tests/__init__.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/README b/lib-python/2.7/lib2to3/tests/data/README
rename from lib-python/2.7.0/lib2to3/tests/data/README
rename to lib-python/2.7/lib2to3/tests/data/README
diff --git a/lib-python/2.7.0/lib2to3/tests/data/bom.py b/lib-python/2.7/lib2to3/tests/data/bom.py
rename from lib-python/2.7.0/lib2to3/tests/data/bom.py
rename to lib-python/2.7/lib2to3/tests/data/bom.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/crlf.py b/lib-python/2.7/lib2to3/tests/data/crlf.py
rename from lib-python/2.7.0/lib2to3/tests/data/crlf.py
rename to lib-python/2.7/lib2to3/tests/data/crlf.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/different_encoding.py b/lib-python/2.7/lib2to3/tests/data/different_encoding.py
rename from lib-python/2.7.0/lib2to3/tests/data/different_encoding.py
rename to lib-python/2.7/lib2to3/tests/data/different_encoding.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/bad_order.py b/lib-python/2.7/lib2to3/tests/data/fixers/bad_order.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/bad_order.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/bad_order.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/__init__.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/__init__.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/__init__.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/__init__.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_explicit.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_first.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_first.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_first.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_first.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_last.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_last.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_last.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_last.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_parrot.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_preorder.py b/lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/no_fixer_cls.py b/lib-python/2.7/lib2to3/tests/data/fixers/no_fixer_cls.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/no_fixer_cls.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/no_fixer_cls.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/fixers/parrot_example.py b/lib-python/2.7/lib2to3/tests/data/fixers/parrot_example.py
rename from lib-python/2.7.0/lib2to3/tests/data/fixers/parrot_example.py
rename to lib-python/2.7/lib2to3/tests/data/fixers/parrot_example.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/infinite_recursion.py b/lib-python/2.7/lib2to3/tests/data/infinite_recursion.py
rename from lib-python/2.7.0/lib2to3/tests/data/infinite_recursion.py
rename to lib-python/2.7/lib2to3/tests/data/infinite_recursion.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/py2_test_grammar.py b/lib-python/2.7/lib2to3/tests/data/py2_test_grammar.py
rename from lib-python/2.7.0/lib2to3/tests/data/py2_test_grammar.py
rename to lib-python/2.7/lib2to3/tests/data/py2_test_grammar.py
diff --git a/lib-python/2.7.0/lib2to3/tests/data/py3_test_grammar.py b/lib-python/2.7/lib2to3/tests/data/py3_test_grammar.py
rename from lib-python/2.7.0/lib2to3/tests/data/py3_test_grammar.py
rename to lib-python/2.7/lib2to3/tests/data/py3_test_grammar.py
diff --git a/lib-python/2.7.0/lib2to3/tests/pytree_idempotency.py b/lib-python/2.7/lib2to3/tests/pytree_idempotency.py
rename from lib-python/2.7.0/lib2to3/tests/pytree_idempotency.py
rename to lib-python/2.7/lib2to3/tests/pytree_idempotency.py
diff --git a/lib-python/2.7.0/lib2to3/tests/support.py b/lib-python/2.7/lib2to3/tests/support.py
rename from lib-python/2.7.0/lib2to3/tests/support.py
rename to lib-python/2.7/lib2to3/tests/support.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_all_fixers.py b/lib-python/2.7/lib2to3/tests/test_all_fixers.py
rename from lib-python/2.7.0/lib2to3/tests/test_all_fixers.py
rename to lib-python/2.7/lib2to3/tests/test_all_fixers.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_fixers.py b/lib-python/2.7/lib2to3/tests/test_fixers.py
rename from lib-python/2.7.0/lib2to3/tests/test_fixers.py
rename to lib-python/2.7/lib2to3/tests/test_fixers.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_main.py b/lib-python/2.7/lib2to3/tests/test_main.py
rename from lib-python/2.7.0/lib2to3/tests/test_main.py
rename to lib-python/2.7/lib2to3/tests/test_main.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_parser.py b/lib-python/2.7/lib2to3/tests/test_parser.py
rename from lib-python/2.7.0/lib2to3/tests/test_parser.py
rename to lib-python/2.7/lib2to3/tests/test_parser.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_pytree.py b/lib-python/2.7/lib2to3/tests/test_pytree.py
rename from lib-python/2.7.0/lib2to3/tests/test_pytree.py
rename to lib-python/2.7/lib2to3/tests/test_pytree.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_refactor.py b/lib-python/2.7/lib2to3/tests/test_refactor.py
rename from lib-python/2.7.0/lib2to3/tests/test_refactor.py
rename to lib-python/2.7/lib2to3/tests/test_refactor.py
diff --git a/lib-python/2.7.0/lib2to3/tests/test_util.py b/lib-python/2.7/lib2to3/tests/test_util.py
rename from lib-python/2.7.0/lib2to3/tests/test_util.py
rename to lib-python/2.7/lib2to3/tests/test_util.py
diff --git a/lib-python/2.7.0/linecache.py b/lib-python/2.7/linecache.py
rename from lib-python/2.7.0/linecache.py
rename to lib-python/2.7/linecache.py
diff --git a/lib-python/2.7.0/locale.py b/lib-python/2.7/locale.py
rename from lib-python/2.7.0/locale.py
rename to lib-python/2.7/locale.py
diff --git a/lib-python/2.7.0/logging/__init__.py b/lib-python/2.7/logging/__init__.py
rename from lib-python/2.7.0/logging/__init__.py
rename to lib-python/2.7/logging/__init__.py
diff --git a/lib-python/2.7.0/logging/config.py b/lib-python/2.7/logging/config.py
rename from lib-python/2.7.0/logging/config.py
rename to lib-python/2.7/logging/config.py
diff --git a/lib-python/2.7.0/logging/handlers.py b/lib-python/2.7/logging/handlers.py
rename from lib-python/2.7.0/logging/handlers.py
rename to lib-python/2.7/logging/handlers.py
diff --git a/lib-python/2.7.0/macpath.py b/lib-python/2.7/macpath.py
rename from lib-python/2.7.0/macpath.py
rename to lib-python/2.7/macpath.py
diff --git a/lib-python/2.7.0/macurl2path.py b/lib-python/2.7/macurl2path.py
rename from lib-python/2.7.0/macurl2path.py
rename to lib-python/2.7/macurl2path.py
diff --git a/lib-python/2.7.0/mailbox.py b/lib-python/2.7/mailbox.py
rename from lib-python/2.7.0/mailbox.py
rename to lib-python/2.7/mailbox.py
diff --git a/lib-python/2.7.0/mailcap.py b/lib-python/2.7/mailcap.py
rename from lib-python/2.7.0/mailcap.py
rename to lib-python/2.7/mailcap.py
diff --git a/lib-python/2.7.0/markupbase.py b/lib-python/2.7/markupbase.py
rename from lib-python/2.7.0/markupbase.py
rename to lib-python/2.7/markupbase.py
diff --git a/lib-python/2.7.0/md5.py b/lib-python/2.7/md5.py
rename from lib-python/2.7.0/md5.py
rename to lib-python/2.7/md5.py
--- a/lib-python/2.7.0/md5.py
+++ b/lib-python/2.7/md5.py
@@ -1,4 +1,4 @@
-# $Id: md5.py 58064 2007-09-09 20:25:00Z gregory.p.smith $
+# $Id$
#
# Copyright (C) 2005 Gregory P. Smith (greg at krypto.org)
# Licensed to PSF under a Contributor Agreement.
diff --git a/lib-python/2.7.0/mhlib.py b/lib-python/2.7/mhlib.py
rename from lib-python/2.7.0/mhlib.py
rename to lib-python/2.7/mhlib.py
diff --git a/lib-python/2.7.0/mimetools.py b/lib-python/2.7/mimetools.py
rename from lib-python/2.7.0/mimetools.py
rename to lib-python/2.7/mimetools.py
diff --git a/lib-python/2.7.0/mimetypes.py b/lib-python/2.7/mimetypes.py
rename from lib-python/2.7.0/mimetypes.py
rename to lib-python/2.7/mimetypes.py
diff --git a/lib-python/2.7.0/mimify.py b/lib-python/2.7/mimify.py
rename from lib-python/2.7.0/mimify.py
rename to lib-python/2.7/mimify.py
diff --git a/lib-python/2.7.0/modulefinder.py b/lib-python/2.7/modulefinder.py
rename from lib-python/2.7.0/modulefinder.py
rename to lib-python/2.7/modulefinder.py
diff --git a/lib-python/2.7.0/msilib/__init__.py b/lib-python/2.7/msilib/__init__.py
rename from lib-python/2.7.0/msilib/__init__.py
rename to lib-python/2.7/msilib/__init__.py
diff --git a/lib-python/2.7.0/msilib/schema.py b/lib-python/2.7/msilib/schema.py
rename from lib-python/2.7.0/msilib/schema.py
rename to lib-python/2.7/msilib/schema.py
diff --git a/lib-python/2.7.0/msilib/sequence.py b/lib-python/2.7/msilib/sequence.py
rename from lib-python/2.7.0/msilib/sequence.py
rename to lib-python/2.7/msilib/sequence.py
diff --git a/lib-python/2.7.0/msilib/text.py b/lib-python/2.7/msilib/text.py
rename from lib-python/2.7.0/msilib/text.py
rename to lib-python/2.7/msilib/text.py
diff --git a/lib-python/2.7.0/multifile.py b/lib-python/2.7/multifile.py
rename from lib-python/2.7.0/multifile.py
rename to lib-python/2.7/multifile.py
diff --git a/lib-python/2.7.0/multiprocessing/__init__.py b/lib-python/2.7/multiprocessing/__init__.py
rename from lib-python/2.7.0/multiprocessing/__init__.py
rename to lib-python/2.7/multiprocessing/__init__.py
diff --git a/lib-python/2.7.0/multiprocessing/connection.py b/lib-python/2.7/multiprocessing/connection.py
rename from lib-python/2.7.0/multiprocessing/connection.py
rename to lib-python/2.7/multiprocessing/connection.py
diff --git a/lib-python/2.7.0/multiprocessing/dummy/__init__.py b/lib-python/2.7/multiprocessing/dummy/__init__.py
rename from lib-python/2.7.0/multiprocessing/dummy/__init__.py
rename to lib-python/2.7/multiprocessing/dummy/__init__.py
diff --git a/lib-python/2.7.0/multiprocessing/dummy/connection.py b/lib-python/2.7/multiprocessing/dummy/connection.py
rename from lib-python/2.7.0/multiprocessing/dummy/connection.py
rename to lib-python/2.7/multiprocessing/dummy/connection.py
diff --git a/lib-python/2.7.0/multiprocessing/forking.py b/lib-python/2.7/multiprocessing/forking.py
rename from lib-python/2.7.0/multiprocessing/forking.py
rename to lib-python/2.7/multiprocessing/forking.py
diff --git a/lib-python/2.7.0/multiprocessing/heap.py b/lib-python/2.7/multiprocessing/heap.py
rename from lib-python/2.7.0/multiprocessing/heap.py
rename to lib-python/2.7/multiprocessing/heap.py
diff --git a/lib-python/2.7.0/multiprocessing/managers.py b/lib-python/2.7/multiprocessing/managers.py
rename from lib-python/2.7.0/multiprocessing/managers.py
rename to lib-python/2.7/multiprocessing/managers.py
diff --git a/lib-python/2.7.0/multiprocessing/pool.py b/lib-python/2.7/multiprocessing/pool.py
rename from lib-python/2.7.0/multiprocessing/pool.py
rename to lib-python/2.7/multiprocessing/pool.py
diff --git a/lib-python/2.7.0/multiprocessing/process.py b/lib-python/2.7/multiprocessing/process.py
rename from lib-python/2.7.0/multiprocessing/process.py
rename to lib-python/2.7/multiprocessing/process.py
diff --git a/lib-python/2.7.0/multiprocessing/queues.py b/lib-python/2.7/multiprocessing/queues.py
rename from lib-python/2.7.0/multiprocessing/queues.py
rename to lib-python/2.7/multiprocessing/queues.py
diff --git a/lib-python/2.7.0/multiprocessing/reduction.py b/lib-python/2.7/multiprocessing/reduction.py
rename from lib-python/2.7.0/multiprocessing/reduction.py
rename to lib-python/2.7/multiprocessing/reduction.py
diff --git a/lib-python/2.7.0/multiprocessing/sharedctypes.py b/lib-python/2.7/multiprocessing/sharedctypes.py
rename from lib-python/2.7.0/multiprocessing/sharedctypes.py
rename to lib-python/2.7/multiprocessing/sharedctypes.py
diff --git a/lib-python/2.7.0/multiprocessing/synchronize.py b/lib-python/2.7/multiprocessing/synchronize.py
rename from lib-python/2.7.0/multiprocessing/synchronize.py
rename to lib-python/2.7/multiprocessing/synchronize.py
diff --git a/lib-python/2.7.0/multiprocessing/util.py b/lib-python/2.7/multiprocessing/util.py
rename from lib-python/2.7.0/multiprocessing/util.py
rename to lib-python/2.7/multiprocessing/util.py
diff --git a/lib-python/2.7.0/mutex.py b/lib-python/2.7/mutex.py
rename from lib-python/2.7.0/mutex.py
rename to lib-python/2.7/mutex.py
diff --git a/lib-python/2.7.0/netrc.py b/lib-python/2.7/netrc.py
rename from lib-python/2.7.0/netrc.py
rename to lib-python/2.7/netrc.py
diff --git a/lib-python/2.7.0/new.py b/lib-python/2.7/new.py
rename from lib-python/2.7.0/new.py
rename to lib-python/2.7/new.py
diff --git a/lib-python/2.7.0/nntplib.py b/lib-python/2.7/nntplib.py
rename from lib-python/2.7.0/nntplib.py
rename to lib-python/2.7/nntplib.py
diff --git a/lib-python/2.7.0/ntpath.py b/lib-python/2.7/ntpath.py
rename from lib-python/2.7.0/ntpath.py
rename to lib-python/2.7/ntpath.py
diff --git a/lib-python/2.7.0/nturl2path.py b/lib-python/2.7/nturl2path.py
rename from lib-python/2.7.0/nturl2path.py
rename to lib-python/2.7/nturl2path.py
diff --git a/lib-python/2.7.0/numbers.py b/lib-python/2.7/numbers.py
rename from lib-python/2.7.0/numbers.py
rename to lib-python/2.7/numbers.py
diff --git a/lib-python/2.7.0/opcode.py b/lib-python/2.7/opcode.py
rename from lib-python/2.7.0/opcode.py
rename to lib-python/2.7/opcode.py
diff --git a/lib-python/2.7.0/optparse.py b/lib-python/2.7/optparse.py
rename from lib-python/2.7.0/optparse.py
rename to lib-python/2.7/optparse.py
diff --git a/lib-python/2.7.0/os.py b/lib-python/2.7/os.py
rename from lib-python/2.7.0/os.py
rename to lib-python/2.7/os.py
diff --git a/lib-python/2.7.0/os2emxpath.py b/lib-python/2.7/os2emxpath.py
rename from lib-python/2.7.0/os2emxpath.py
rename to lib-python/2.7/os2emxpath.py
diff --git a/lib-python/2.7.0/pdb.doc b/lib-python/2.7/pdb.doc
rename from lib-python/2.7.0/pdb.doc
rename to lib-python/2.7/pdb.doc
diff --git a/lib-python/2.7.0/pdb.py b/lib-python/2.7/pdb.py
rename from lib-python/2.7.0/pdb.py
rename to lib-python/2.7/pdb.py
diff --git a/lib-python/2.7.0/pickle.py b/lib-python/2.7/pickle.py
rename from lib-python/2.7.0/pickle.py
rename to lib-python/2.7/pickle.py
--- a/lib-python/2.7.0/pickle.py
+++ b/lib-python/2.7/pickle.py
@@ -24,7 +24,7 @@
"""
-__version__ = "$Revision: 72223 $" # Code version
+__version__ = "$Revision$" # Code version
from types import *
from copy_reg import dispatch_table
diff --git a/lib-python/2.7.0/pickletools.py b/lib-python/2.7/pickletools.py
rename from lib-python/2.7.0/pickletools.py
rename to lib-python/2.7/pickletools.py
diff --git a/lib-python/2.7.0/pipes.py b/lib-python/2.7/pipes.py
rename from lib-python/2.7.0/pipes.py
rename to lib-python/2.7/pipes.py
diff --git a/lib-python/2.7.0/pkgutil.py b/lib-python/2.7/pkgutil.py
rename from lib-python/2.7.0/pkgutil.py
rename to lib-python/2.7/pkgutil.py
diff --git a/lib-python/2.7.0/plat-aix3/IN.py b/lib-python/2.7/plat-aix3/IN.py
rename from lib-python/2.7.0/plat-aix3/IN.py
rename to lib-python/2.7/plat-aix3/IN.py
diff --git a/lib-python/2.7.0/plat-aix3/regen b/lib-python/2.7/plat-aix3/regen
rename from lib-python/2.7.0/plat-aix3/regen
rename to lib-python/2.7/plat-aix3/regen
diff --git a/lib-python/2.7.0/plat-aix4/IN.py b/lib-python/2.7/plat-aix4/IN.py
rename from lib-python/2.7.0/plat-aix4/IN.py
rename to lib-python/2.7/plat-aix4/IN.py
diff --git a/lib-python/2.7.0/plat-aix4/regen b/lib-python/2.7/plat-aix4/regen
rename from lib-python/2.7.0/plat-aix4/regen
rename to lib-python/2.7/plat-aix4/regen
diff --git a/lib-python/2.7.0/plat-atheos/IN.py b/lib-python/2.7/plat-atheos/IN.py
rename from lib-python/2.7.0/plat-atheos/IN.py
rename to lib-python/2.7/plat-atheos/IN.py
diff --git a/lib-python/2.7.0/plat-atheos/TYPES.py b/lib-python/2.7/plat-atheos/TYPES.py
rename from lib-python/2.7.0/plat-atheos/TYPES.py
rename to lib-python/2.7/plat-atheos/TYPES.py
diff --git a/lib-python/2.7.0/plat-atheos/regen b/lib-python/2.7/plat-atheos/regen
rename from lib-python/2.7.0/plat-atheos/regen
rename to lib-python/2.7/plat-atheos/regen
diff --git a/lib-python/2.7.0/plat-beos5/IN.py b/lib-python/2.7/plat-beos5/IN.py
rename from lib-python/2.7.0/plat-beos5/IN.py
rename to lib-python/2.7/plat-beos5/IN.py
diff --git a/lib-python/2.7.0/plat-beos5/regen b/lib-python/2.7/plat-beos5/regen
rename from lib-python/2.7.0/plat-beos5/regen
rename to lib-python/2.7/plat-beos5/regen
diff --git a/lib-python/2.7.0/plat-darwin/IN.py b/lib-python/2.7/plat-darwin/IN.py
rename from lib-python/2.7.0/plat-darwin/IN.py
rename to lib-python/2.7/plat-darwin/IN.py
diff --git a/lib-python/2.7.0/plat-darwin/regen b/lib-python/2.7/plat-darwin/regen
rename from lib-python/2.7.0/plat-darwin/regen
rename to lib-python/2.7/plat-darwin/regen
diff --git a/lib-python/2.7.0/plat-freebsd4/IN.py b/lib-python/2.7/plat-freebsd4/IN.py
rename from lib-python/2.7.0/plat-freebsd4/IN.py
rename to lib-python/2.7/plat-freebsd4/IN.py
diff --git a/lib-python/2.7.0/plat-freebsd4/regen b/lib-python/2.7/plat-freebsd4/regen
rename from lib-python/2.7.0/plat-freebsd4/regen
rename to lib-python/2.7/plat-freebsd4/regen
diff --git a/lib-python/2.7.0/plat-freebsd5/IN.py b/lib-python/2.7/plat-freebsd5/IN.py
rename from lib-python/2.7.0/plat-freebsd5/IN.py
rename to lib-python/2.7/plat-freebsd5/IN.py
diff --git a/lib-python/2.7.0/plat-freebsd5/regen b/lib-python/2.7/plat-freebsd5/regen
rename from lib-python/2.7.0/plat-freebsd5/regen
rename to lib-python/2.7/plat-freebsd5/regen
diff --git a/lib-python/2.7.0/plat-freebsd6/IN.py b/lib-python/2.7/plat-freebsd6/IN.py
rename from lib-python/2.7.0/plat-freebsd6/IN.py
rename to lib-python/2.7/plat-freebsd6/IN.py
diff --git a/lib-python/2.7.0/plat-freebsd6/regen b/lib-python/2.7/plat-freebsd6/regen
rename from lib-python/2.7.0/plat-freebsd6/regen
rename to lib-python/2.7/plat-freebsd6/regen
diff --git a/lib-python/2.7.0/plat-freebsd7/IN.py b/lib-python/2.7/plat-freebsd7/IN.py
rename from lib-python/2.7.0/plat-freebsd7/IN.py
rename to lib-python/2.7/plat-freebsd7/IN.py
diff --git a/lib-python/2.7.0/plat-freebsd7/regen b/lib-python/2.7/plat-freebsd7/regen
rename from lib-python/2.7.0/plat-freebsd7/regen
rename to lib-python/2.7/plat-freebsd7/regen
diff --git a/lib-python/2.7.0/plat-freebsd8/IN.py b/lib-python/2.7/plat-freebsd8/IN.py
rename from lib-python/2.7.0/plat-freebsd8/IN.py
rename to lib-python/2.7/plat-freebsd8/IN.py
diff --git a/lib-python/2.7.0/plat-freebsd8/regen b/lib-python/2.7/plat-freebsd8/regen
rename from lib-python/2.7.0/plat-freebsd8/regen
rename to lib-python/2.7/plat-freebsd8/regen
diff --git a/lib-python/2.7.0/plat-generic/regen b/lib-python/2.7/plat-generic/regen
rename from lib-python/2.7.0/plat-generic/regen
rename to lib-python/2.7/plat-generic/regen
diff --git a/lib-python/2.7.0/plat-irix5/AL.py b/lib-python/2.7/plat-irix5/AL.py
rename from lib-python/2.7.0/plat-irix5/AL.py
rename to lib-python/2.7/plat-irix5/AL.py
diff --git a/lib-python/2.7.0/plat-irix5/CD.py b/lib-python/2.7/plat-irix5/CD.py
rename from lib-python/2.7.0/plat-irix5/CD.py
rename to lib-python/2.7/plat-irix5/CD.py
diff --git a/lib-python/2.7.0/plat-irix5/CL.py b/lib-python/2.7/plat-irix5/CL.py
rename from lib-python/2.7.0/plat-irix5/CL.py
rename to lib-python/2.7/plat-irix5/CL.py
diff --git a/lib-python/2.7.0/plat-irix5/CL_old.py b/lib-python/2.7/plat-irix5/CL_old.py
rename from lib-python/2.7.0/plat-irix5/CL_old.py
rename to lib-python/2.7/plat-irix5/CL_old.py
diff --git a/lib-python/2.7.0/plat-irix5/DEVICE.py b/lib-python/2.7/plat-irix5/DEVICE.py
rename from lib-python/2.7.0/plat-irix5/DEVICE.py
rename to lib-python/2.7/plat-irix5/DEVICE.py
diff --git a/lib-python/2.7.0/plat-irix5/ERRNO.py b/lib-python/2.7/plat-irix5/ERRNO.py
rename from lib-python/2.7.0/plat-irix5/ERRNO.py
rename to lib-python/2.7/plat-irix5/ERRNO.py
diff --git a/lib-python/2.7.0/plat-irix5/FILE.py b/lib-python/2.7/plat-irix5/FILE.py
rename from lib-python/2.7.0/plat-irix5/FILE.py
rename to lib-python/2.7/plat-irix5/FILE.py
diff --git a/lib-python/2.7.0/plat-irix5/FL.py b/lib-python/2.7/plat-irix5/FL.py
rename from lib-python/2.7.0/plat-irix5/FL.py
rename to lib-python/2.7/plat-irix5/FL.py
diff --git a/lib-python/2.7.0/plat-irix5/GET.py b/lib-python/2.7/plat-irix5/GET.py
rename from lib-python/2.7.0/plat-irix5/GET.py
rename to lib-python/2.7/plat-irix5/GET.py
diff --git a/lib-python/2.7.0/plat-irix5/GL.py b/lib-python/2.7/plat-irix5/GL.py
rename from lib-python/2.7.0/plat-irix5/GL.py
rename to lib-python/2.7/plat-irix5/GL.py
diff --git a/lib-python/2.7.0/plat-irix5/GLWS.py b/lib-python/2.7/plat-irix5/GLWS.py
rename from lib-python/2.7.0/plat-irix5/GLWS.py
rename to lib-python/2.7/plat-irix5/GLWS.py
diff --git a/lib-python/2.7.0/plat-irix5/IN.py b/lib-python/2.7/plat-irix5/IN.py
rename from lib-python/2.7.0/plat-irix5/IN.py
rename to lib-python/2.7/plat-irix5/IN.py
diff --git a/lib-python/2.7.0/plat-irix5/IOCTL.py b/lib-python/2.7/plat-irix5/IOCTL.py
rename from lib-python/2.7.0/plat-irix5/IOCTL.py
rename to lib-python/2.7/plat-irix5/IOCTL.py
diff --git a/lib-python/2.7.0/plat-irix5/SV.py b/lib-python/2.7/plat-irix5/SV.py
rename from lib-python/2.7.0/plat-irix5/SV.py
rename to lib-python/2.7/plat-irix5/SV.py
diff --git a/lib-python/2.7.0/plat-irix5/WAIT.py b/lib-python/2.7/plat-irix5/WAIT.py
rename from lib-python/2.7.0/plat-irix5/WAIT.py
rename to lib-python/2.7/plat-irix5/WAIT.py
diff --git a/lib-python/2.7.0/plat-irix5/cddb.py b/lib-python/2.7/plat-irix5/cddb.py
rename from lib-python/2.7.0/plat-irix5/cddb.py
rename to lib-python/2.7/plat-irix5/cddb.py
diff --git a/lib-python/2.7.0/plat-irix5/cdplayer.py b/lib-python/2.7/plat-irix5/cdplayer.py
rename from lib-python/2.7.0/plat-irix5/cdplayer.py
rename to lib-python/2.7/plat-irix5/cdplayer.py
diff --git a/lib-python/2.7.0/plat-irix5/flp.doc b/lib-python/2.7/plat-irix5/flp.doc
rename from lib-python/2.7.0/plat-irix5/flp.doc
rename to lib-python/2.7/plat-irix5/flp.doc
diff --git a/lib-python/2.7.0/plat-irix5/flp.py b/lib-python/2.7/plat-irix5/flp.py
rename from lib-python/2.7.0/plat-irix5/flp.py
rename to lib-python/2.7/plat-irix5/flp.py
diff --git a/lib-python/2.7.0/plat-irix5/jpeg.py b/lib-python/2.7/plat-irix5/jpeg.py
rename from lib-python/2.7.0/plat-irix5/jpeg.py
rename to lib-python/2.7/plat-irix5/jpeg.py
diff --git a/lib-python/2.7.0/plat-irix5/panel.py b/lib-python/2.7/plat-irix5/panel.py
rename from lib-python/2.7.0/plat-irix5/panel.py
rename to lib-python/2.7/plat-irix5/panel.py
diff --git a/lib-python/2.7.0/plat-irix5/panelparser.py b/lib-python/2.7/plat-irix5/panelparser.py
rename from lib-python/2.7.0/plat-irix5/panelparser.py
rename to lib-python/2.7/plat-irix5/panelparser.py
diff --git a/lib-python/2.7.0/plat-irix5/readcd.doc b/lib-python/2.7/plat-irix5/readcd.doc
rename from lib-python/2.7.0/plat-irix5/readcd.doc
rename to lib-python/2.7/plat-irix5/readcd.doc
diff --git a/lib-python/2.7.0/plat-irix5/readcd.py b/lib-python/2.7/plat-irix5/readcd.py
rename from lib-python/2.7.0/plat-irix5/readcd.py
rename to lib-python/2.7/plat-irix5/readcd.py
diff --git a/lib-python/2.7.0/plat-irix5/regen b/lib-python/2.7/plat-irix5/regen
rename from lib-python/2.7.0/plat-irix5/regen
rename to lib-python/2.7/plat-irix5/regen
diff --git a/lib-python/2.7.0/plat-irix5/torgb.py b/lib-python/2.7/plat-irix5/torgb.py
rename from lib-python/2.7.0/plat-irix5/torgb.py
rename to lib-python/2.7/plat-irix5/torgb.py
diff --git a/lib-python/2.7.0/plat-irix6/AL.py b/lib-python/2.7/plat-irix6/AL.py
rename from lib-python/2.7.0/plat-irix6/AL.py
rename to lib-python/2.7/plat-irix6/AL.py
diff --git a/lib-python/2.7.0/plat-irix6/CD.py b/lib-python/2.7/plat-irix6/CD.py
rename from lib-python/2.7.0/plat-irix6/CD.py
rename to lib-python/2.7/plat-irix6/CD.py
diff --git a/lib-python/2.7.0/plat-irix6/CL.py b/lib-python/2.7/plat-irix6/CL.py
rename from lib-python/2.7.0/plat-irix6/CL.py
rename to lib-python/2.7/plat-irix6/CL.py
diff --git a/lib-python/2.7.0/plat-irix6/DEVICE.py b/lib-python/2.7/plat-irix6/DEVICE.py
rename from lib-python/2.7.0/plat-irix6/DEVICE.py
rename to lib-python/2.7/plat-irix6/DEVICE.py
diff --git a/lib-python/2.7.0/plat-irix6/ERRNO.py b/lib-python/2.7/plat-irix6/ERRNO.py
rename from lib-python/2.7.0/plat-irix6/ERRNO.py
rename to lib-python/2.7/plat-irix6/ERRNO.py
diff --git a/lib-python/2.7.0/plat-irix6/FILE.py b/lib-python/2.7/plat-irix6/FILE.py
rename from lib-python/2.7.0/plat-irix6/FILE.py
rename to lib-python/2.7/plat-irix6/FILE.py
diff --git a/lib-python/2.7.0/plat-irix6/FL.py b/lib-python/2.7/plat-irix6/FL.py
rename from lib-python/2.7.0/plat-irix6/FL.py
rename to lib-python/2.7/plat-irix6/FL.py
diff --git a/lib-python/2.7.0/plat-irix6/GET.py b/lib-python/2.7/plat-irix6/GET.py
rename from lib-python/2.7.0/plat-irix6/GET.py
rename to lib-python/2.7/plat-irix6/GET.py
diff --git a/lib-python/2.7.0/plat-irix6/GL.py b/lib-python/2.7/plat-irix6/GL.py
rename from lib-python/2.7.0/plat-irix6/GL.py
rename to lib-python/2.7/plat-irix6/GL.py
diff --git a/lib-python/2.7.0/plat-irix6/GLWS.py b/lib-python/2.7/plat-irix6/GLWS.py
rename from lib-python/2.7.0/plat-irix6/GLWS.py
rename to lib-python/2.7/plat-irix6/GLWS.py
diff --git a/lib-python/2.7.0/plat-irix6/IN.py b/lib-python/2.7/plat-irix6/IN.py
rename from lib-python/2.7.0/plat-irix6/IN.py
rename to lib-python/2.7/plat-irix6/IN.py
diff --git a/lib-python/2.7.0/plat-irix6/IOCTL.py b/lib-python/2.7/plat-irix6/IOCTL.py
rename from lib-python/2.7.0/plat-irix6/IOCTL.py
rename to lib-python/2.7/plat-irix6/IOCTL.py
diff --git a/lib-python/2.7.0/plat-irix6/SV.py b/lib-python/2.7/plat-irix6/SV.py
rename from lib-python/2.7.0/plat-irix6/SV.py
rename to lib-python/2.7/plat-irix6/SV.py
diff --git a/lib-python/2.7.0/plat-irix6/WAIT.py b/lib-python/2.7/plat-irix6/WAIT.py
rename from lib-python/2.7.0/plat-irix6/WAIT.py
rename to lib-python/2.7/plat-irix6/WAIT.py
diff --git a/lib-python/2.7.0/plat-irix6/cddb.py b/lib-python/2.7/plat-irix6/cddb.py
rename from lib-python/2.7.0/plat-irix6/cddb.py
rename to lib-python/2.7/plat-irix6/cddb.py
diff --git a/lib-python/2.7.0/plat-irix6/cdplayer.py b/lib-python/2.7/plat-irix6/cdplayer.py
rename from lib-python/2.7.0/plat-irix6/cdplayer.py
rename to lib-python/2.7/plat-irix6/cdplayer.py
diff --git a/lib-python/2.7.0/plat-irix6/flp.doc b/lib-python/2.7/plat-irix6/flp.doc
rename from lib-python/2.7.0/plat-irix6/flp.doc
rename to lib-python/2.7/plat-irix6/flp.doc
diff --git a/lib-python/2.7.0/plat-irix6/flp.py b/lib-python/2.7/plat-irix6/flp.py
rename from lib-python/2.7.0/plat-irix6/flp.py
rename to lib-python/2.7/plat-irix6/flp.py
diff --git a/lib-python/2.7.0/plat-irix6/jpeg.py b/lib-python/2.7/plat-irix6/jpeg.py
rename from lib-python/2.7.0/plat-irix6/jpeg.py
rename to lib-python/2.7/plat-irix6/jpeg.py
diff --git a/lib-python/2.7.0/plat-irix6/panel.py b/lib-python/2.7/plat-irix6/panel.py
rename from lib-python/2.7.0/plat-irix6/panel.py
rename to lib-python/2.7/plat-irix6/panel.py
diff --git a/lib-python/2.7.0/plat-irix6/panelparser.py b/lib-python/2.7/plat-irix6/panelparser.py
rename from lib-python/2.7.0/plat-irix6/panelparser.py
rename to lib-python/2.7/plat-irix6/panelparser.py
diff --git a/lib-python/2.7.0/plat-irix6/readcd.doc b/lib-python/2.7/plat-irix6/readcd.doc
rename from lib-python/2.7.0/plat-irix6/readcd.doc
rename to lib-python/2.7/plat-irix6/readcd.doc
diff --git a/lib-python/2.7.0/plat-irix6/readcd.py b/lib-python/2.7/plat-irix6/readcd.py
rename from lib-python/2.7.0/plat-irix6/readcd.py
rename to lib-python/2.7/plat-irix6/readcd.py
diff --git a/lib-python/2.7.0/plat-irix6/regen b/lib-python/2.7/plat-irix6/regen
rename from lib-python/2.7.0/plat-irix6/regen
rename to lib-python/2.7/plat-irix6/regen
diff --git a/lib-python/2.7.0/plat-irix6/torgb.py b/lib-python/2.7/plat-irix6/torgb.py
rename from lib-python/2.7.0/plat-irix6/torgb.py
rename to lib-python/2.7/plat-irix6/torgb.py
diff --git a/lib-python/2.7.0/plat-linux2/CDROM.py b/lib-python/2.7/plat-linux2/CDROM.py
rename from lib-python/2.7.0/plat-linux2/CDROM.py
rename to lib-python/2.7/plat-linux2/CDROM.py
diff --git a/lib-python/2.7.0/plat-linux2/DLFCN.py b/lib-python/2.7/plat-linux2/DLFCN.py
rename from lib-python/2.7.0/plat-linux2/DLFCN.py
rename to lib-python/2.7/plat-linux2/DLFCN.py
diff --git a/lib-python/2.7.0/plat-linux2/IN.py b/lib-python/2.7/plat-linux2/IN.py
rename from lib-python/2.7.0/plat-linux2/IN.py
rename to lib-python/2.7/plat-linux2/IN.py
diff --git a/lib-python/2.7.0/plat-linux2/TYPES.py b/lib-python/2.7/plat-linux2/TYPES.py
rename from lib-python/2.7.0/plat-linux2/TYPES.py
rename to lib-python/2.7/plat-linux2/TYPES.py
diff --git a/lib-python/2.7.0/plat-linux2/regen b/lib-python/2.7/plat-linux2/regen
rename from lib-python/2.7.0/plat-linux2/regen
rename to lib-python/2.7/plat-linux2/regen
diff --git a/lib-python/2.7.0/plat-mac/Audio_mac.py b/lib-python/2.7/plat-mac/Audio_mac.py
rename from lib-python/2.7.0/plat-mac/Audio_mac.py
rename to lib-python/2.7/plat-mac/Audio_mac.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/AE.py b/lib-python/2.7/plat-mac/Carbon/AE.py
rename from lib-python/2.7.0/plat-mac/Carbon/AE.py
rename to lib-python/2.7/plat-mac/Carbon/AE.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/AH.py b/lib-python/2.7/plat-mac/Carbon/AH.py
rename from lib-python/2.7.0/plat-mac/Carbon/AH.py
rename to lib-python/2.7/plat-mac/Carbon/AH.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Alias.py b/lib-python/2.7/plat-mac/Carbon/Alias.py
rename from lib-python/2.7.0/plat-mac/Carbon/Alias.py
rename to lib-python/2.7/plat-mac/Carbon/Alias.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Aliases.py b/lib-python/2.7/plat-mac/Carbon/Aliases.py
rename from lib-python/2.7.0/plat-mac/Carbon/Aliases.py
rename to lib-python/2.7/plat-mac/Carbon/Aliases.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/App.py b/lib-python/2.7/plat-mac/Carbon/App.py
rename from lib-python/2.7.0/plat-mac/Carbon/App.py
rename to lib-python/2.7/plat-mac/Carbon/App.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Appearance.py b/lib-python/2.7/plat-mac/Carbon/Appearance.py
rename from lib-python/2.7.0/plat-mac/Carbon/Appearance.py
rename to lib-python/2.7/plat-mac/Carbon/Appearance.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/AppleEvents.py b/lib-python/2.7/plat-mac/Carbon/AppleEvents.py
rename from lib-python/2.7.0/plat-mac/Carbon/AppleEvents.py
rename to lib-python/2.7/plat-mac/Carbon/AppleEvents.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/AppleHelp.py b/lib-python/2.7/plat-mac/Carbon/AppleHelp.py
rename from lib-python/2.7.0/plat-mac/Carbon/AppleHelp.py
rename to lib-python/2.7/plat-mac/Carbon/AppleHelp.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CF.py b/lib-python/2.7/plat-mac/Carbon/CF.py
rename from lib-python/2.7.0/plat-mac/Carbon/CF.py
rename to lib-python/2.7/plat-mac/Carbon/CF.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CG.py b/lib-python/2.7/plat-mac/Carbon/CG.py
rename from lib-python/2.7.0/plat-mac/Carbon/CG.py
rename to lib-python/2.7/plat-mac/Carbon/CG.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CarbonEvents.py b/lib-python/2.7/plat-mac/Carbon/CarbonEvents.py
rename from lib-python/2.7.0/plat-mac/Carbon/CarbonEvents.py
rename to lib-python/2.7/plat-mac/Carbon/CarbonEvents.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CarbonEvt.py b/lib-python/2.7/plat-mac/Carbon/CarbonEvt.py
rename from lib-python/2.7.0/plat-mac/Carbon/CarbonEvt.py
rename to lib-python/2.7/plat-mac/Carbon/CarbonEvt.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Cm.py b/lib-python/2.7/plat-mac/Carbon/Cm.py
rename from lib-python/2.7.0/plat-mac/Carbon/Cm.py
rename to lib-python/2.7/plat-mac/Carbon/Cm.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Components.py b/lib-python/2.7/plat-mac/Carbon/Components.py
rename from lib-python/2.7.0/plat-mac/Carbon/Components.py
rename to lib-python/2.7/plat-mac/Carbon/Components.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/ControlAccessor.py b/lib-python/2.7/plat-mac/Carbon/ControlAccessor.py
rename from lib-python/2.7.0/plat-mac/Carbon/ControlAccessor.py
rename to lib-python/2.7/plat-mac/Carbon/ControlAccessor.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Controls.py b/lib-python/2.7/plat-mac/Carbon/Controls.py
rename from lib-python/2.7.0/plat-mac/Carbon/Controls.py
rename to lib-python/2.7/plat-mac/Carbon/Controls.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CoreFoundation.py b/lib-python/2.7/plat-mac/Carbon/CoreFoundation.py
rename from lib-python/2.7.0/plat-mac/Carbon/CoreFoundation.py
rename to lib-python/2.7/plat-mac/Carbon/CoreFoundation.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/CoreGraphics.py b/lib-python/2.7/plat-mac/Carbon/CoreGraphics.py
rename from lib-python/2.7.0/plat-mac/Carbon/CoreGraphics.py
rename to lib-python/2.7/plat-mac/Carbon/CoreGraphics.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Ctl.py b/lib-python/2.7/plat-mac/Carbon/Ctl.py
rename from lib-python/2.7.0/plat-mac/Carbon/Ctl.py
rename to lib-python/2.7/plat-mac/Carbon/Ctl.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Dialogs.py b/lib-python/2.7/plat-mac/Carbon/Dialogs.py
rename from lib-python/2.7.0/plat-mac/Carbon/Dialogs.py
rename to lib-python/2.7/plat-mac/Carbon/Dialogs.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Dlg.py b/lib-python/2.7/plat-mac/Carbon/Dlg.py
rename from lib-python/2.7.0/plat-mac/Carbon/Dlg.py
rename to lib-python/2.7/plat-mac/Carbon/Dlg.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Drag.py b/lib-python/2.7/plat-mac/Carbon/Drag.py
rename from lib-python/2.7.0/plat-mac/Carbon/Drag.py
rename to lib-python/2.7/plat-mac/Carbon/Drag.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Dragconst.py b/lib-python/2.7/plat-mac/Carbon/Dragconst.py
rename from lib-python/2.7.0/plat-mac/Carbon/Dragconst.py
rename to lib-python/2.7/plat-mac/Carbon/Dragconst.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Events.py b/lib-python/2.7/plat-mac/Carbon/Events.py
rename from lib-python/2.7.0/plat-mac/Carbon/Events.py
rename to lib-python/2.7/plat-mac/Carbon/Events.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Evt.py b/lib-python/2.7/plat-mac/Carbon/Evt.py
rename from lib-python/2.7.0/plat-mac/Carbon/Evt.py
rename to lib-python/2.7/plat-mac/Carbon/Evt.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/File.py b/lib-python/2.7/plat-mac/Carbon/File.py
rename from lib-python/2.7.0/plat-mac/Carbon/File.py
rename to lib-python/2.7/plat-mac/Carbon/File.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Files.py b/lib-python/2.7/plat-mac/Carbon/Files.py
rename from lib-python/2.7.0/plat-mac/Carbon/Files.py
rename to lib-python/2.7/plat-mac/Carbon/Files.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Fm.py b/lib-python/2.7/plat-mac/Carbon/Fm.py
rename from lib-python/2.7.0/plat-mac/Carbon/Fm.py
rename to lib-python/2.7/plat-mac/Carbon/Fm.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Folder.py b/lib-python/2.7/plat-mac/Carbon/Folder.py
rename from lib-python/2.7.0/plat-mac/Carbon/Folder.py
rename to lib-python/2.7/plat-mac/Carbon/Folder.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Folders.py b/lib-python/2.7/plat-mac/Carbon/Folders.py
rename from lib-python/2.7.0/plat-mac/Carbon/Folders.py
rename to lib-python/2.7/plat-mac/Carbon/Folders.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Fonts.py b/lib-python/2.7/plat-mac/Carbon/Fonts.py
rename from lib-python/2.7.0/plat-mac/Carbon/Fonts.py
rename to lib-python/2.7/plat-mac/Carbon/Fonts.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Help.py b/lib-python/2.7/plat-mac/Carbon/Help.py
rename from lib-python/2.7.0/plat-mac/Carbon/Help.py
rename to lib-python/2.7/plat-mac/Carbon/Help.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/IBCarbon.py b/lib-python/2.7/plat-mac/Carbon/IBCarbon.py
rename from lib-python/2.7.0/plat-mac/Carbon/IBCarbon.py
rename to lib-python/2.7/plat-mac/Carbon/IBCarbon.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/IBCarbonRuntime.py b/lib-python/2.7/plat-mac/Carbon/IBCarbonRuntime.py
rename from lib-python/2.7.0/plat-mac/Carbon/IBCarbonRuntime.py
rename to lib-python/2.7/plat-mac/Carbon/IBCarbonRuntime.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Icn.py b/lib-python/2.7/plat-mac/Carbon/Icn.py
rename from lib-python/2.7.0/plat-mac/Carbon/Icn.py
rename to lib-python/2.7/plat-mac/Carbon/Icn.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Icons.py b/lib-python/2.7/plat-mac/Carbon/Icons.py
rename from lib-python/2.7.0/plat-mac/Carbon/Icons.py
rename to lib-python/2.7/plat-mac/Carbon/Icons.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Launch.py b/lib-python/2.7/plat-mac/Carbon/Launch.py
rename from lib-python/2.7.0/plat-mac/Carbon/Launch.py
rename to lib-python/2.7/plat-mac/Carbon/Launch.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/LaunchServices.py b/lib-python/2.7/plat-mac/Carbon/LaunchServices.py
rename from lib-python/2.7.0/plat-mac/Carbon/LaunchServices.py
rename to lib-python/2.7/plat-mac/Carbon/LaunchServices.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/List.py b/lib-python/2.7/plat-mac/Carbon/List.py
rename from lib-python/2.7.0/plat-mac/Carbon/List.py
rename to lib-python/2.7/plat-mac/Carbon/List.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Lists.py b/lib-python/2.7/plat-mac/Carbon/Lists.py
rename from lib-python/2.7.0/plat-mac/Carbon/Lists.py
rename to lib-python/2.7/plat-mac/Carbon/Lists.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/MacHelp.py b/lib-python/2.7/plat-mac/Carbon/MacHelp.py
rename from lib-python/2.7.0/plat-mac/Carbon/MacHelp.py
rename to lib-python/2.7/plat-mac/Carbon/MacHelp.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/MacTextEditor.py b/lib-python/2.7/plat-mac/Carbon/MacTextEditor.py
rename from lib-python/2.7.0/plat-mac/Carbon/MacTextEditor.py
rename to lib-python/2.7/plat-mac/Carbon/MacTextEditor.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/MediaDescr.py b/lib-python/2.7/plat-mac/Carbon/MediaDescr.py
rename from lib-python/2.7.0/plat-mac/Carbon/MediaDescr.py
rename to lib-python/2.7/plat-mac/Carbon/MediaDescr.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Menu.py b/lib-python/2.7/plat-mac/Carbon/Menu.py
rename from lib-python/2.7.0/plat-mac/Carbon/Menu.py
rename to lib-python/2.7/plat-mac/Carbon/Menu.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Menus.py b/lib-python/2.7/plat-mac/Carbon/Menus.py
rename from lib-python/2.7.0/plat-mac/Carbon/Menus.py
rename to lib-python/2.7/plat-mac/Carbon/Menus.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Mlte.py b/lib-python/2.7/plat-mac/Carbon/Mlte.py
rename from lib-python/2.7.0/plat-mac/Carbon/Mlte.py
rename to lib-python/2.7/plat-mac/Carbon/Mlte.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/OSA.py b/lib-python/2.7/plat-mac/Carbon/OSA.py
rename from lib-python/2.7.0/plat-mac/Carbon/OSA.py
rename to lib-python/2.7/plat-mac/Carbon/OSA.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/OSAconst.py b/lib-python/2.7/plat-mac/Carbon/OSAconst.py
rename from lib-python/2.7.0/plat-mac/Carbon/OSAconst.py
rename to lib-python/2.7/plat-mac/Carbon/OSAconst.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/QDOffscreen.py b/lib-python/2.7/plat-mac/Carbon/QDOffscreen.py
rename from lib-python/2.7.0/plat-mac/Carbon/QDOffscreen.py
rename to lib-python/2.7/plat-mac/Carbon/QDOffscreen.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Qd.py b/lib-python/2.7/plat-mac/Carbon/Qd.py
rename from lib-python/2.7.0/plat-mac/Carbon/Qd.py
rename to lib-python/2.7/plat-mac/Carbon/Qd.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Qdoffs.py b/lib-python/2.7/plat-mac/Carbon/Qdoffs.py
rename from lib-python/2.7.0/plat-mac/Carbon/Qdoffs.py
rename to lib-python/2.7/plat-mac/Carbon/Qdoffs.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Qt.py b/lib-python/2.7/plat-mac/Carbon/Qt.py
rename from lib-python/2.7.0/plat-mac/Carbon/Qt.py
rename to lib-python/2.7/plat-mac/Carbon/Qt.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/QuickDraw.py b/lib-python/2.7/plat-mac/Carbon/QuickDraw.py
rename from lib-python/2.7.0/plat-mac/Carbon/QuickDraw.py
rename to lib-python/2.7/plat-mac/Carbon/QuickDraw.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/QuickTime.py b/lib-python/2.7/plat-mac/Carbon/QuickTime.py
rename from lib-python/2.7.0/plat-mac/Carbon/QuickTime.py
rename to lib-python/2.7/plat-mac/Carbon/QuickTime.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Res.py b/lib-python/2.7/plat-mac/Carbon/Res.py
rename from lib-python/2.7.0/plat-mac/Carbon/Res.py
rename to lib-python/2.7/plat-mac/Carbon/Res.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Resources.py b/lib-python/2.7/plat-mac/Carbon/Resources.py
rename from lib-python/2.7.0/plat-mac/Carbon/Resources.py
rename to lib-python/2.7/plat-mac/Carbon/Resources.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Scrap.py b/lib-python/2.7/plat-mac/Carbon/Scrap.py
rename from lib-python/2.7.0/plat-mac/Carbon/Scrap.py
rename to lib-python/2.7/plat-mac/Carbon/Scrap.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Snd.py b/lib-python/2.7/plat-mac/Carbon/Snd.py
rename from lib-python/2.7.0/plat-mac/Carbon/Snd.py
rename to lib-python/2.7/plat-mac/Carbon/Snd.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Sndihooks.py b/lib-python/2.7/plat-mac/Carbon/Sndihooks.py
rename from lib-python/2.7.0/plat-mac/Carbon/Sndihooks.py
rename to lib-python/2.7/plat-mac/Carbon/Sndihooks.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Sound.py b/lib-python/2.7/plat-mac/Carbon/Sound.py
rename from lib-python/2.7.0/plat-mac/Carbon/Sound.py
rename to lib-python/2.7/plat-mac/Carbon/Sound.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/TE.py b/lib-python/2.7/plat-mac/Carbon/TE.py
rename from lib-python/2.7.0/plat-mac/Carbon/TE.py
rename to lib-python/2.7/plat-mac/Carbon/TE.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/TextEdit.py b/lib-python/2.7/plat-mac/Carbon/TextEdit.py
rename from lib-python/2.7.0/plat-mac/Carbon/TextEdit.py
rename to lib-python/2.7/plat-mac/Carbon/TextEdit.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Win.py b/lib-python/2.7/plat-mac/Carbon/Win.py
rename from lib-python/2.7.0/plat-mac/Carbon/Win.py
rename to lib-python/2.7/plat-mac/Carbon/Win.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/Windows.py b/lib-python/2.7/plat-mac/Carbon/Windows.py
rename from lib-python/2.7.0/plat-mac/Carbon/Windows.py
rename to lib-python/2.7/plat-mac/Carbon/Windows.py
diff --git a/lib-python/2.7.0/plat-mac/Carbon/__init__.py b/lib-python/2.7/plat-mac/Carbon/__init__.py
rename from lib-python/2.7.0/plat-mac/Carbon/__init__.py
rename to lib-python/2.7/plat-mac/Carbon/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/EasyDialogs.py b/lib-python/2.7/plat-mac/EasyDialogs.py
rename from lib-python/2.7.0/plat-mac/EasyDialogs.py
rename to lib-python/2.7/plat-mac/EasyDialogs.py
diff --git a/lib-python/2.7.0/plat-mac/FrameWork.py b/lib-python/2.7/plat-mac/FrameWork.py
rename from lib-python/2.7.0/plat-mac/FrameWork.py
rename to lib-python/2.7/plat-mac/FrameWork.py
diff --git a/lib-python/2.7.0/plat-mac/MiniAEFrame.py b/lib-python/2.7/plat-mac/MiniAEFrame.py
rename from lib-python/2.7.0/plat-mac/MiniAEFrame.py
rename to lib-python/2.7/plat-mac/MiniAEFrame.py
diff --git a/lib-python/2.7.0/plat-mac/PixMapWrapper.py b/lib-python/2.7/plat-mac/PixMapWrapper.py
rename from lib-python/2.7.0/plat-mac/PixMapWrapper.py
rename to lib-python/2.7/plat-mac/PixMapWrapper.py
diff --git a/lib-python/2.7.0/plat-mac/aepack.py b/lib-python/2.7/plat-mac/aepack.py
rename from lib-python/2.7.0/plat-mac/aepack.py
rename to lib-python/2.7/plat-mac/aepack.py
diff --git a/lib-python/2.7.0/plat-mac/aetools.py b/lib-python/2.7/plat-mac/aetools.py
rename from lib-python/2.7.0/plat-mac/aetools.py
rename to lib-python/2.7/plat-mac/aetools.py
diff --git a/lib-python/2.7.0/plat-mac/aetypes.py b/lib-python/2.7/plat-mac/aetypes.py
rename from lib-python/2.7.0/plat-mac/aetypes.py
rename to lib-python/2.7/plat-mac/aetypes.py
diff --git a/lib-python/2.7.0/plat-mac/applesingle.py b/lib-python/2.7/plat-mac/applesingle.py
rename from lib-python/2.7.0/plat-mac/applesingle.py
rename to lib-python/2.7/plat-mac/applesingle.py
diff --git a/lib-python/2.7.0/plat-mac/appletrawmain.py b/lib-python/2.7/plat-mac/appletrawmain.py
rename from lib-python/2.7.0/plat-mac/appletrawmain.py
rename to lib-python/2.7/plat-mac/appletrawmain.py
diff --git a/lib-python/2.7.0/plat-mac/appletrunner.py b/lib-python/2.7/plat-mac/appletrunner.py
rename from lib-python/2.7.0/plat-mac/appletrunner.py
rename to lib-python/2.7/plat-mac/appletrunner.py
diff --git a/lib-python/2.7.0/plat-mac/argvemulator.py b/lib-python/2.7/plat-mac/argvemulator.py
rename from lib-python/2.7.0/plat-mac/argvemulator.py
rename to lib-python/2.7/plat-mac/argvemulator.py
diff --git a/lib-python/2.7.0/plat-mac/bgenlocations.py b/lib-python/2.7/plat-mac/bgenlocations.py
rename from lib-python/2.7.0/plat-mac/bgenlocations.py
rename to lib-python/2.7/plat-mac/bgenlocations.py
diff --git a/lib-python/2.7.0/plat-mac/buildtools.py b/lib-python/2.7/plat-mac/buildtools.py
rename from lib-python/2.7.0/plat-mac/buildtools.py
rename to lib-python/2.7/plat-mac/buildtools.py
diff --git a/lib-python/2.7.0/plat-mac/bundlebuilder.py b/lib-python/2.7/plat-mac/bundlebuilder.py
rename from lib-python/2.7.0/plat-mac/bundlebuilder.py
rename to lib-python/2.7/plat-mac/bundlebuilder.py
diff --git a/lib-python/2.7.0/plat-mac/cfmfile.py b/lib-python/2.7/plat-mac/cfmfile.py
rename from lib-python/2.7.0/plat-mac/cfmfile.py
rename to lib-python/2.7/plat-mac/cfmfile.py
diff --git a/lib-python/2.7.0/plat-mac/dialogs.rsrc b/lib-python/2.7/plat-mac/dialogs.rsrc
rename from lib-python/2.7.0/plat-mac/dialogs.rsrc
rename to lib-python/2.7/plat-mac/dialogs.rsrc
diff --git a/lib-python/2.7.0/plat-mac/errors.rsrc b/lib-python/2.7/plat-mac/errors.rsrc
rename from lib-python/2.7.0/plat-mac/errors.rsrc
rename to lib-python/2.7/plat-mac/errors.rsrc
diff --git a/lib-python/2.7.0/plat-mac/findertools.py b/lib-python/2.7/plat-mac/findertools.py
rename from lib-python/2.7.0/plat-mac/findertools.py
rename to lib-python/2.7/plat-mac/findertools.py
diff --git a/lib-python/2.7.0/plat-mac/gensuitemodule.py b/lib-python/2.7/plat-mac/gensuitemodule.py
rename from lib-python/2.7.0/plat-mac/gensuitemodule.py
rename to lib-python/2.7/plat-mac/gensuitemodule.py
diff --git a/lib-python/2.7.0/plat-mac/ic.py b/lib-python/2.7/plat-mac/ic.py
rename from lib-python/2.7.0/plat-mac/ic.py
rename to lib-python/2.7/plat-mac/ic.py
diff --git a/lib-python/2.7.0/plat-mac/icopen.py b/lib-python/2.7/plat-mac/icopen.py
rename from lib-python/2.7.0/plat-mac/icopen.py
rename to lib-python/2.7/plat-mac/icopen.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Required.py b/lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Required.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Required.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Required.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/URL_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/URL_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/URL_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/URL_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/Web_Browser_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Explorer/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Explorer/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Enumerations.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Enumerations.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Enumerations.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Enumerations.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Files.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Files.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Files.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Files.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Finder_items.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Finder_items.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Finder_items.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Finder_items.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Window_classes.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Window_classes.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/Window_classes.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/Window_classes.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Finder/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Finder/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Finder/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Mozilla_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Required_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Required_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Standard_URL_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Standard_URL_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Standard_URL_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Standard_URL_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Text.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Text.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/Text.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/Text.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/WorldWideWeb_suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Netscape/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Netscape/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Required_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Required_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Required_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Required_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Text_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Text_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Text_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Text_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Type_Names_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Type_Names_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/Type_Names_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/Type_Names_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/StdSuites/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/StdSuites/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Disk_Folder_File_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Disk_Folder_File_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Disk_Folder_File_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Disk_Folder_File_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Folder_Actions_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Login_Items_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Login_Items_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Login_Items_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Login_Items_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Processes_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/System_Events_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/Terminal/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/Terminal/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py b/lib-python/2.7/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
diff --git a/lib-python/2.7.0/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py b/lib-python/2.7/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
rename from lib-python/2.7.0/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
rename to lib-python/2.7/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
diff --git a/lib-python/2.7.0/plat-mac/macerrors.py b/lib-python/2.7/plat-mac/macerrors.py
rename from lib-python/2.7.0/plat-mac/macerrors.py
rename to lib-python/2.7/plat-mac/macerrors.py
diff --git a/lib-python/2.7.0/plat-mac/macostools.py b/lib-python/2.7/plat-mac/macostools.py
rename from lib-python/2.7.0/plat-mac/macostools.py
rename to lib-python/2.7/plat-mac/macostools.py
diff --git a/lib-python/2.7.0/plat-mac/macresource.py b/lib-python/2.7/plat-mac/macresource.py
rename from lib-python/2.7.0/plat-mac/macresource.py
rename to lib-python/2.7/plat-mac/macresource.py
diff --git a/lib-python/2.7.0/plat-mac/pimp.py b/lib-python/2.7/plat-mac/pimp.py
rename from lib-python/2.7.0/plat-mac/pimp.py
rename to lib-python/2.7/plat-mac/pimp.py
diff --git a/lib-python/2.7.0/plat-mac/terminalcommand.py b/lib-python/2.7/plat-mac/terminalcommand.py
rename from lib-python/2.7.0/plat-mac/terminalcommand.py
rename to lib-python/2.7/plat-mac/terminalcommand.py
diff --git a/lib-python/2.7.0/plat-mac/videoreader.py b/lib-python/2.7/plat-mac/videoreader.py
rename from lib-python/2.7.0/plat-mac/videoreader.py
rename to lib-python/2.7/plat-mac/videoreader.py
diff --git a/lib-python/2.7.0/plat-netbsd1/IN.py b/lib-python/2.7/plat-netbsd1/IN.py
rename from lib-python/2.7.0/plat-netbsd1/IN.py
rename to lib-python/2.7/plat-netbsd1/IN.py
diff --git a/lib-python/2.7.0/plat-netbsd1/regen b/lib-python/2.7/plat-netbsd1/regen
rename from lib-python/2.7.0/plat-netbsd1/regen
rename to lib-python/2.7/plat-netbsd1/regen
diff --git a/lib-python/2.7.0/plat-next3/regen b/lib-python/2.7/plat-next3/regen
rename from lib-python/2.7.0/plat-next3/regen
rename to lib-python/2.7/plat-next3/regen
diff --git a/lib-python/2.7.0/plat-os2emx/IN.py b/lib-python/2.7/plat-os2emx/IN.py
rename from lib-python/2.7.0/plat-os2emx/IN.py
rename to lib-python/2.7/plat-os2emx/IN.py
diff --git a/lib-python/2.7.0/plat-os2emx/SOCKET.py b/lib-python/2.7/plat-os2emx/SOCKET.py
rename from lib-python/2.7.0/plat-os2emx/SOCKET.py
rename to lib-python/2.7/plat-os2emx/SOCKET.py
diff --git a/lib-python/2.7.0/plat-os2emx/_emx_link.py b/lib-python/2.7/plat-os2emx/_emx_link.py
rename from lib-python/2.7.0/plat-os2emx/_emx_link.py
rename to lib-python/2.7/plat-os2emx/_emx_link.py
diff --git a/lib-python/2.7.0/plat-os2emx/grp.py b/lib-python/2.7/plat-os2emx/grp.py
rename from lib-python/2.7.0/plat-os2emx/grp.py
rename to lib-python/2.7/plat-os2emx/grp.py
diff --git a/lib-python/2.7.0/plat-os2emx/pwd.py b/lib-python/2.7/plat-os2emx/pwd.py
rename from lib-python/2.7.0/plat-os2emx/pwd.py
rename to lib-python/2.7/plat-os2emx/pwd.py
diff --git a/lib-python/2.7.0/plat-os2emx/regen b/lib-python/2.7/plat-os2emx/regen
rename from lib-python/2.7.0/plat-os2emx/regen
rename to lib-python/2.7/plat-os2emx/regen
diff --git a/lib-python/2.7.0/plat-riscos/riscosenviron.py b/lib-python/2.7/plat-riscos/riscosenviron.py
rename from lib-python/2.7.0/plat-riscos/riscosenviron.py
rename to lib-python/2.7/plat-riscos/riscosenviron.py
diff --git a/lib-python/2.7.0/plat-riscos/riscospath.py b/lib-python/2.7/plat-riscos/riscospath.py
rename from lib-python/2.7.0/plat-riscos/riscospath.py
rename to lib-python/2.7/plat-riscos/riscospath.py
diff --git a/lib-python/2.7.0/plat-riscos/rourl2path.py b/lib-python/2.7/plat-riscos/rourl2path.py
rename from lib-python/2.7.0/plat-riscos/rourl2path.py
rename to lib-python/2.7/plat-riscos/rourl2path.py
diff --git a/lib-python/2.7.0/plat-sunos5/CDIO.py b/lib-python/2.7/plat-sunos5/CDIO.py
rename from lib-python/2.7.0/plat-sunos5/CDIO.py
rename to lib-python/2.7/plat-sunos5/CDIO.py
diff --git a/lib-python/2.7.0/plat-sunos5/DLFCN.py b/lib-python/2.7/plat-sunos5/DLFCN.py
rename from lib-python/2.7.0/plat-sunos5/DLFCN.py
rename to lib-python/2.7/plat-sunos5/DLFCN.py
diff --git a/lib-python/2.7.0/plat-sunos5/IN.py b/lib-python/2.7/plat-sunos5/IN.py
rename from lib-python/2.7.0/plat-sunos5/IN.py
rename to lib-python/2.7/plat-sunos5/IN.py
diff --git a/lib-python/2.7.0/plat-sunos5/STROPTS.py b/lib-python/2.7/plat-sunos5/STROPTS.py
rename from lib-python/2.7.0/plat-sunos5/STROPTS.py
rename to lib-python/2.7/plat-sunos5/STROPTS.py
diff --git a/lib-python/2.7.0/plat-sunos5/SUNAUDIODEV.py b/lib-python/2.7/plat-sunos5/SUNAUDIODEV.py
rename from lib-python/2.7.0/plat-sunos5/SUNAUDIODEV.py
rename to lib-python/2.7/plat-sunos5/SUNAUDIODEV.py
diff --git a/lib-python/2.7.0/plat-sunos5/TYPES.py b/lib-python/2.7/plat-sunos5/TYPES.py
rename from lib-python/2.7.0/plat-sunos5/TYPES.py
rename to lib-python/2.7/plat-sunos5/TYPES.py
diff --git a/lib-python/2.7.0/plat-sunos5/regen b/lib-python/2.7/plat-sunos5/regen
rename from lib-python/2.7.0/plat-sunos5/regen
rename to lib-python/2.7/plat-sunos5/regen
diff --git a/lib-python/2.7.0/plat-unixware7/IN.py b/lib-python/2.7/plat-unixware7/IN.py
rename from lib-python/2.7.0/plat-unixware7/IN.py
rename to lib-python/2.7/plat-unixware7/IN.py
diff --git a/lib-python/2.7.0/plat-unixware7/STROPTS.py b/lib-python/2.7/plat-unixware7/STROPTS.py
rename from lib-python/2.7.0/plat-unixware7/STROPTS.py
rename to lib-python/2.7/plat-unixware7/STROPTS.py
diff --git a/lib-python/2.7.0/plat-unixware7/regen b/lib-python/2.7/plat-unixware7/regen
rename from lib-python/2.7.0/plat-unixware7/regen
rename to lib-python/2.7/plat-unixware7/regen
diff --git a/lib-python/2.7.0/platform.py b/lib-python/2.7/platform.py
rename from lib-python/2.7.0/platform.py
rename to lib-python/2.7/platform.py
diff --git a/lib-python/2.7.0/plistlib.py b/lib-python/2.7/plistlib.py
rename from lib-python/2.7.0/plistlib.py
rename to lib-python/2.7/plistlib.py
diff --git a/lib-python/2.7.0/popen2.py b/lib-python/2.7/popen2.py
rename from lib-python/2.7.0/popen2.py
rename to lib-python/2.7/popen2.py
diff --git a/lib-python/2.7.0/poplib.py b/lib-python/2.7/poplib.py
rename from lib-python/2.7.0/poplib.py
rename to lib-python/2.7/poplib.py
diff --git a/lib-python/2.7.0/posixfile.py b/lib-python/2.7/posixfile.py
rename from lib-python/2.7.0/posixfile.py
rename to lib-python/2.7/posixfile.py
diff --git a/lib-python/2.7.0/posixpath.py b/lib-python/2.7/posixpath.py
rename from lib-python/2.7.0/posixpath.py
rename to lib-python/2.7/posixpath.py
diff --git a/lib-python/2.7.0/pprint.py b/lib-python/2.7/pprint.py
rename from lib-python/2.7.0/pprint.py
rename to lib-python/2.7/pprint.py
diff --git a/lib-python/2.7.0/profile.py b/lib-python/2.7/profile.py
rename from lib-python/2.7.0/profile.py
rename to lib-python/2.7/profile.py
diff --git a/lib-python/2.7.0/pstats.py b/lib-python/2.7/pstats.py
rename from lib-python/2.7.0/pstats.py
rename to lib-python/2.7/pstats.py
--- a/lib-python/2.7.0/pstats.py
+++ b/lib-python/2.7/pstats.py
@@ -359,7 +359,7 @@
print >> self.stream, indent, self.total_calls, "function calls",
if self.total_calls != self.prim_calls:
print >> self.stream, "(%d primitive calls)" % self.prim_calls,
- print >> self.stream, "in %.3f CPU seconds" % self.total_tt
+ print >> self.stream, "in %.3f seconds" % self.total_tt
print >> self.stream
width, list = self.get_print_list(amount)
if list:
diff --git a/lib-python/2.7.0/pty.py b/lib-python/2.7/pty.py
rename from lib-python/2.7.0/pty.py
rename to lib-python/2.7/pty.py
diff --git a/lib-python/2.7.0/py_compile.py b/lib-python/2.7/py_compile.py
rename from lib-python/2.7.0/py_compile.py
rename to lib-python/2.7/py_compile.py
diff --git a/lib-python/2.7.0/pyclbr.py b/lib-python/2.7/pyclbr.py
rename from lib-python/2.7.0/pyclbr.py
rename to lib-python/2.7/pyclbr.py
diff --git a/lib-python/2.7.0/pydoc.py b/lib-python/2.7/pydoc.py
rename from lib-python/2.7.0/pydoc.py
rename to lib-python/2.7/pydoc.py
--- a/lib-python/2.7.0/pydoc.py
+++ b/lib-python/2.7/pydoc.py
@@ -37,7 +37,7 @@
__author__ = "Ka-Ping Yee <ping at lfw.org>"
__date__ = "26 February 2001"
-__version__ = "$Revision: 84174 $"
+__version__ = "$Revision$"
__credits__ = """Guido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
diff --git a/lib-python/2.7.0/pydoc_data/__init__.py b/lib-python/2.7/pydoc_data/__init__.py
rename from lib-python/2.7.0/pydoc_data/__init__.py
rename to lib-python/2.7/pydoc_data/__init__.py
diff --git a/lib-python/2.7.0/pydoc_data/topics.py b/lib-python/2.7/pydoc_data/topics.py
rename from lib-python/2.7.0/pydoc_data/topics.py
rename to lib-python/2.7/pydoc_data/topics.py
diff --git a/lib-python/2.7.0/quopri.py b/lib-python/2.7/quopri.py
rename from lib-python/2.7.0/quopri.py
rename to lib-python/2.7/quopri.py
diff --git a/lib-python/2.7.0/random.py b/lib-python/2.7/random.py
rename from lib-python/2.7.0/random.py
rename to lib-python/2.7/random.py
diff --git a/lib-python/2.7.0/re.py b/lib-python/2.7/re.py
rename from lib-python/2.7.0/re.py
rename to lib-python/2.7/re.py
diff --git a/lib-python/2.7.0/repr.py b/lib-python/2.7/repr.py
rename from lib-python/2.7.0/repr.py
rename to lib-python/2.7/repr.py
diff --git a/lib-python/2.7.0/rexec.py b/lib-python/2.7/rexec.py
rename from lib-python/2.7.0/rexec.py
rename to lib-python/2.7/rexec.py
diff --git a/lib-python/2.7.0/rfc822.py b/lib-python/2.7/rfc822.py
rename from lib-python/2.7.0/rfc822.py
rename to lib-python/2.7/rfc822.py
diff --git a/lib-python/2.7.0/rlcompleter.py b/lib-python/2.7/rlcompleter.py
rename from lib-python/2.7.0/rlcompleter.py
rename to lib-python/2.7/rlcompleter.py
diff --git a/lib-python/2.7.0/robotparser.py b/lib-python/2.7/robotparser.py
rename from lib-python/2.7.0/robotparser.py
rename to lib-python/2.7/robotparser.py
diff --git a/lib-python/2.7.0/runpy.py b/lib-python/2.7/runpy.py
rename from lib-python/2.7.0/runpy.py
rename to lib-python/2.7/runpy.py
diff --git a/lib-python/2.7.0/sched.py b/lib-python/2.7/sched.py
rename from lib-python/2.7.0/sched.py
rename to lib-python/2.7/sched.py
diff --git a/lib-python/2.7.0/sets.py b/lib-python/2.7/sets.py
rename from lib-python/2.7.0/sets.py
rename to lib-python/2.7/sets.py
diff --git a/lib-python/2.7.0/sgmllib.py b/lib-python/2.7/sgmllib.py
rename from lib-python/2.7.0/sgmllib.py
rename to lib-python/2.7/sgmllib.py
diff --git a/lib-python/2.7.0/sha.py b/lib-python/2.7/sha.py
rename from lib-python/2.7.0/sha.py
rename to lib-python/2.7/sha.py
--- a/lib-python/2.7.0/sha.py
+++ b/lib-python/2.7/sha.py
@@ -1,4 +1,4 @@
-# $Id: sha.py 58064 2007-09-09 20:25:00Z gregory.p.smith $
+# $Id$
#
# Copyright (C) 2005 Gregory P. Smith (greg at krypto.org)
# Licensed to PSF under a Contributor Agreement.
diff --git a/lib-python/2.7.0/shelve.py b/lib-python/2.7/shelve.py
rename from lib-python/2.7.0/shelve.py
rename to lib-python/2.7/shelve.py
diff --git a/lib-python/2.7.0/shlex.py b/lib-python/2.7/shlex.py
rename from lib-python/2.7.0/shlex.py
rename to lib-python/2.7/shlex.py
diff --git a/lib-python/2.7.0/shutil.py b/lib-python/2.7/shutil.py
rename from lib-python/2.7.0/shutil.py
rename to lib-python/2.7/shutil.py
diff --git a/lib-python/2.7.0/site-packages/README b/lib-python/2.7/site-packages/README
rename from lib-python/2.7.0/site-packages/README
rename to lib-python/2.7/site-packages/README
diff --git a/lib-python/2.7.0/site.py b/lib-python/2.7/site.py
rename from lib-python/2.7.0/site.py
rename to lib-python/2.7/site.py
diff --git a/lib-python/2.7.0/smtpd.py b/lib-python/2.7/smtpd.py
rename from lib-python/2.7.0/smtpd.py
rename to lib-python/2.7/smtpd.py
diff --git a/lib-python/2.7.0/smtplib.py b/lib-python/2.7/smtplib.py
rename from lib-python/2.7.0/smtplib.py
rename to lib-python/2.7/smtplib.py
diff --git a/lib-python/2.7.0/sndhdr.py b/lib-python/2.7/sndhdr.py
rename from lib-python/2.7.0/sndhdr.py
rename to lib-python/2.7/sndhdr.py
diff --git a/lib-python/2.7.0/socket.py b/lib-python/2.7/socket.py
rename from lib-python/2.7.0/socket.py
rename to lib-python/2.7/socket.py
diff --git a/lib-python/2.7.0/sqlite3/__init__.py b/lib-python/2.7/sqlite3/__init__.py
rename from lib-python/2.7.0/sqlite3/__init__.py
rename to lib-python/2.7/sqlite3/__init__.py
diff --git a/lib-python/2.7.0/sqlite3/dbapi2.py b/lib-python/2.7/sqlite3/dbapi2.py
rename from lib-python/2.7.0/sqlite3/dbapi2.py
rename to lib-python/2.7/sqlite3/dbapi2.py
diff --git a/lib-python/2.7.0/sqlite3/dump.py b/lib-python/2.7/sqlite3/dump.py
rename from lib-python/2.7.0/sqlite3/dump.py
rename to lib-python/2.7/sqlite3/dump.py
diff --git a/lib-python/2.7.0/sqlite3/test/__init__.py b/lib-python/2.7/sqlite3/test/__init__.py
rename from lib-python/2.7.0/sqlite3/test/__init__.py
rename to lib-python/2.7/sqlite3/test/__init__.py
diff --git a/lib-python/2.7.0/sqlite3/test/dbapi.py b/lib-python/2.7/sqlite3/test/dbapi.py
rename from lib-python/2.7.0/sqlite3/test/dbapi.py
rename to lib-python/2.7/sqlite3/test/dbapi.py
--- a/lib-python/2.7.0/sqlite3/test/dbapi.py
+++ b/lib-python/2.7/sqlite3/test/dbapi.py
@@ -44,8 +44,8 @@
sqlite.paramstyle)
def CheckWarning(self):
- self.assert_(issubclass(sqlite.Warning, StandardError),
- "Warning is not a subclass of StandardError")
+ self.assertTrue(issubclass(sqlite.Warning, StandardError),
+ "Warning is not a subclass of StandardError")
def CheckError(self):
self.assertTrue(issubclass(sqlite.Error, StandardError),
diff --git a/lib-python/2.7.0/sqlite3/test/dump.py b/lib-python/2.7/sqlite3/test/dump.py
rename from lib-python/2.7.0/sqlite3/test/dump.py
rename to lib-python/2.7/sqlite3/test/dump.py
diff --git a/lib-python/2.7.0/sqlite3/test/factory.py b/lib-python/2.7/sqlite3/test/factory.py
rename from lib-python/2.7.0/sqlite3/test/factory.py
rename to lib-python/2.7/sqlite3/test/factory.py
diff --git a/lib-python/2.7.0/sqlite3/test/hooks.py b/lib-python/2.7/sqlite3/test/hooks.py
rename from lib-python/2.7.0/sqlite3/test/hooks.py
rename to lib-python/2.7/sqlite3/test/hooks.py
diff --git a/lib-python/2.7.0/sqlite3/test/py25tests.py b/lib-python/2.7/sqlite3/test/py25tests.py
rename from lib-python/2.7.0/sqlite3/test/py25tests.py
rename to lib-python/2.7/sqlite3/test/py25tests.py
diff --git a/lib-python/2.7.0/sqlite3/test/regression.py b/lib-python/2.7/sqlite3/test/regression.py
rename from lib-python/2.7.0/sqlite3/test/regression.py
rename to lib-python/2.7/sqlite3/test/regression.py
diff --git a/lib-python/2.7.0/sqlite3/test/transactions.py b/lib-python/2.7/sqlite3/test/transactions.py
rename from lib-python/2.7.0/sqlite3/test/transactions.py
rename to lib-python/2.7/sqlite3/test/transactions.py
diff --git a/lib-python/2.7.0/sqlite3/test/types.py b/lib-python/2.7/sqlite3/test/types.py
rename from lib-python/2.7.0/sqlite3/test/types.py
rename to lib-python/2.7/sqlite3/test/types.py
--- a/lib-python/2.7.0/sqlite3/test/types.py
+++ b/lib-python/2.7/sqlite3/test/types.py
@@ -306,7 +306,7 @@
no row returned.
"""
self.cur.execute("select * from test where 0 = 1")
- self.assert_(self.cur.description[0][0] == "x")
+ self.assertEqual(self.cur.description[0][0], "x")
class ObjectAdaptationTests(unittest.TestCase):
def cast(obj):
diff --git a/lib-python/2.7.0/sqlite3/test/userfunctions.py b/lib-python/2.7/sqlite3/test/userfunctions.py
rename from lib-python/2.7.0/sqlite3/test/userfunctions.py
rename to lib-python/2.7/sqlite3/test/userfunctions.py
diff --git a/lib-python/2.7.0/sre.py b/lib-python/2.7/sre.py
rename from lib-python/2.7.0/sre.py
rename to lib-python/2.7/sre.py
diff --git a/lib-python/2.7.0/sre_compile.py b/lib-python/2.7/sre_compile.py
rename from lib-python/2.7.0/sre_compile.py
rename to lib-python/2.7/sre_compile.py
diff --git a/lib-python/2.7.0/sre_constants.py b/lib-python/2.7/sre_constants.py
rename from lib-python/2.7.0/sre_constants.py
rename to lib-python/2.7/sre_constants.py
diff --git a/lib-python/2.7.0/sre_parse.py b/lib-python/2.7/sre_parse.py
rename from lib-python/2.7.0/sre_parse.py
rename to lib-python/2.7/sre_parse.py
diff --git a/lib-python/2.7.0/ssl.py b/lib-python/2.7/ssl.py
rename from lib-python/2.7.0/ssl.py
rename to lib-python/2.7/ssl.py
diff --git a/lib-python/2.7.0/stat.py b/lib-python/2.7/stat.py
rename from lib-python/2.7.0/stat.py
rename to lib-python/2.7/stat.py
diff --git a/lib-python/2.7.0/statvfs.py b/lib-python/2.7/statvfs.py
rename from lib-python/2.7.0/statvfs.py
rename to lib-python/2.7/statvfs.py
diff --git a/lib-python/2.7.0/string.py b/lib-python/2.7/string.py
rename from lib-python/2.7.0/string.py
rename to lib-python/2.7/string.py
diff --git a/lib-python/2.7.0/stringold.py b/lib-python/2.7/stringold.py
rename from lib-python/2.7.0/stringold.py
rename to lib-python/2.7/stringold.py
diff --git a/lib-python/2.7.0/stringprep.py b/lib-python/2.7/stringprep.py
rename from lib-python/2.7.0/stringprep.py
rename to lib-python/2.7/stringprep.py
diff --git a/lib-python/2.7.0/struct.py b/lib-python/2.7/struct.py
rename from lib-python/2.7.0/struct.py
rename to lib-python/2.7/struct.py
diff --git a/lib-python/2.7.0/subprocess.py b/lib-python/2.7/subprocess.py
rename from lib-python/2.7.0/subprocess.py
rename to lib-python/2.7/subprocess.py
diff --git a/lib-python/2.7.0/sunau.py b/lib-python/2.7/sunau.py
rename from lib-python/2.7.0/sunau.py
rename to lib-python/2.7/sunau.py
diff --git a/lib-python/2.7.0/sunaudio.py b/lib-python/2.7/sunaudio.py
rename from lib-python/2.7.0/sunaudio.py
rename to lib-python/2.7/sunaudio.py
diff --git a/lib-python/2.7.0/symbol.py b/lib-python/2.7/symbol.py
rename from lib-python/2.7.0/symbol.py
rename to lib-python/2.7/symbol.py
diff --git a/lib-python/2.7.0/symtable.py b/lib-python/2.7/symtable.py
rename from lib-python/2.7.0/symtable.py
rename to lib-python/2.7/symtable.py
diff --git a/lib-python/2.7.0/sysconfig.py b/lib-python/2.7/sysconfig.py
rename from lib-python/2.7.0/sysconfig.py
rename to lib-python/2.7/sysconfig.py
--- a/lib-python/2.7.0/sysconfig.py
+++ b/lib-python/2.7/sysconfig.py
@@ -635,13 +635,16 @@
# behaviour.
pass
else:
- m = re.search(
- r'<key>ProductUserVisibleVersion</key>\s*' +
- r'<string>(.*?)</string>', f.read())
- f.close()
- if m is not None:
- macrelease = '.'.join(m.group(1).split('.')[:2])
- # else: fall back to the default behaviour
+ try:
+ m = re.search(
+ r'<key>ProductUserVisibleVersion</key>\s*' +
+ r'<string>(.*?)</string>', f.read())
+ f.close()
+ if m is not None:
+ macrelease = '.'.join(m.group(1).split('.')[:2])
+ # else: fall back to the default behaviour
+ finally:
+ f.close()
if not macver:
macver = macrelease
diff --git a/lib-python/2.7.0/tabnanny.py b/lib-python/2.7/tabnanny.py
rename from lib-python/2.7.0/tabnanny.py
rename to lib-python/2.7/tabnanny.py
diff --git a/lib-python/2.7.0/tarfile.py b/lib-python/2.7/tarfile.py
rename from lib-python/2.7.0/tarfile.py
rename to lib-python/2.7/tarfile.py
--- a/lib-python/2.7.0/tarfile.py
+++ b/lib-python/2.7/tarfile.py
@@ -30,13 +30,13 @@
"""Read from and write to tar format archives.
"""
-__version__ = "$Revision: 85213 $"
+__version__ = "$Revision$"
# $Source$
version = "0.9.0"
__author__ = "Lars Gust�bel (lars at gustaebel.de)"
-__date__ = "$Date: 2010-10-04 17:37:53 +0200 (Mon, 04 Oct 2010) $"
-__cvsid__ = "$Id: tarfile.py 85213 2010-10-04 15:37:53Z lars.gustaebel $"
+__date__ = "$Date$"
+__cvsid__ = "$Id$"
__credits__ = "Gustavo Niemeyer, Niels Gust�bel, Richard Townsend."
#---------
diff --git a/lib-python/2.7.0/telnetlib.py b/lib-python/2.7/telnetlib.py
rename from lib-python/2.7.0/telnetlib.py
rename to lib-python/2.7/telnetlib.py
diff --git a/lib-python/2.7.0/tempfile.py b/lib-python/2.7/tempfile.py
rename from lib-python/2.7.0/tempfile.py
rename to lib-python/2.7/tempfile.py
diff --git a/lib-python/2.7.0/test/185test.db b/lib-python/2.7/test/185test.db
rename from lib-python/2.7.0/test/185test.db
rename to lib-python/2.7/test/185test.db
diff --git a/lib-python/2.7.0/test/Sine-1000Hz-300ms.aif b/lib-python/2.7/test/Sine-1000Hz-300ms.aif
rename from lib-python/2.7.0/test/Sine-1000Hz-300ms.aif
rename to lib-python/2.7/test/Sine-1000Hz-300ms.aif
diff --git a/lib-python/2.7.0/test/__init__.py b/lib-python/2.7/test/__init__.py
rename from lib-python/2.7.0/test/__init__.py
rename to lib-python/2.7/test/__init__.py
diff --git a/lib-python/2.7.0/test/audiotest.au b/lib-python/2.7/test/audiotest.au
rename from lib-python/2.7.0/test/audiotest.au
rename to lib-python/2.7/test/audiotest.au
diff --git a/lib-python/2.7.0/test/autotest.py b/lib-python/2.7/test/autotest.py
rename from lib-python/2.7.0/test/autotest.py
rename to lib-python/2.7/test/autotest.py
diff --git a/lib-python/2.7.0/test/bad_coding.py b/lib-python/2.7/test/bad_coding.py
rename from lib-python/2.7.0/test/bad_coding.py
rename to lib-python/2.7/test/bad_coding.py
diff --git a/lib-python/2.7.0/test/bad_coding2.py b/lib-python/2.7/test/bad_coding2.py
rename from lib-python/2.7.0/test/bad_coding2.py
rename to lib-python/2.7/test/bad_coding2.py
diff --git a/lib-python/2.7.0/test/badcert.pem b/lib-python/2.7/test/badcert.pem
rename from lib-python/2.7.0/test/badcert.pem
rename to lib-python/2.7/test/badcert.pem
diff --git a/lib-python/2.7.0/test/badkey.pem b/lib-python/2.7/test/badkey.pem
rename from lib-python/2.7.0/test/badkey.pem
rename to lib-python/2.7/test/badkey.pem
diff --git a/lib-python/2.7.0/test/badsyntax_future3.py b/lib-python/2.7/test/badsyntax_future3.py
rename from lib-python/2.7.0/test/badsyntax_future3.py
rename to lib-python/2.7/test/badsyntax_future3.py
diff --git a/lib-python/2.7.0/test/badsyntax_future4.py b/lib-python/2.7/test/badsyntax_future4.py
rename from lib-python/2.7.0/test/badsyntax_future4.py
rename to lib-python/2.7/test/badsyntax_future4.py
diff --git a/lib-python/2.7.0/test/badsyntax_future5.py b/lib-python/2.7/test/badsyntax_future5.py
rename from lib-python/2.7.0/test/badsyntax_future5.py
rename to lib-python/2.7/test/badsyntax_future5.py
diff --git a/lib-python/2.7.0/test/badsyntax_future6.py b/lib-python/2.7/test/badsyntax_future6.py
rename from lib-python/2.7.0/test/badsyntax_future6.py
rename to lib-python/2.7/test/badsyntax_future6.py
diff --git a/lib-python/2.7.0/test/badsyntax_future7.py b/lib-python/2.7/test/badsyntax_future7.py
rename from lib-python/2.7.0/test/badsyntax_future7.py
rename to lib-python/2.7/test/badsyntax_future7.py
diff --git a/lib-python/2.7.0/test/badsyntax_future8.py b/lib-python/2.7/test/badsyntax_future8.py
rename from lib-python/2.7.0/test/badsyntax_future8.py
rename to lib-python/2.7/test/badsyntax_future8.py
diff --git a/lib-python/2.7.0/test/badsyntax_future9.py b/lib-python/2.7/test/badsyntax_future9.py
rename from lib-python/2.7.0/test/badsyntax_future9.py
rename to lib-python/2.7/test/badsyntax_future9.py
diff --git a/lib-python/2.7.0/test/badsyntax_nocaret.py b/lib-python/2.7/test/badsyntax_nocaret.py
rename from lib-python/2.7.0/test/badsyntax_nocaret.py
rename to lib-python/2.7/test/badsyntax_nocaret.py
diff --git a/lib-python/2.7.0/test/buffer_tests.py b/lib-python/2.7/test/buffer_tests.py
rename from lib-python/2.7.0/test/buffer_tests.py
rename to lib-python/2.7/test/buffer_tests.py
--- a/lib-python/2.7.0/test/buffer_tests.py
+++ b/lib-python/2.7/test/buffer_tests.py
@@ -15,32 +15,32 @@
def test_islower(self):
self.assertFalse(self.marshal(b'').islower())
- self.assert_(self.marshal(b'a').islower())
+ self.assertTrue(self.marshal(b'a').islower())
self.assertFalse(self.marshal(b'A').islower())
self.assertFalse(self.marshal(b'\n').islower())
- self.assert_(self.marshal(b'abc').islower())
+ self.assertTrue(self.marshal(b'abc').islower())
self.assertFalse(self.marshal(b'aBc').islower())
- self.assert_(self.marshal(b'abc\n').islower())
+ self.assertTrue(self.marshal(b'abc\n').islower())
self.assertRaises(TypeError, self.marshal(b'abc').islower, 42)
def test_isupper(self):
self.assertFalse(self.marshal(b'').isupper())
self.assertFalse(self.marshal(b'a').isupper())
- self.assert_(self.marshal(b'A').isupper())
+ self.assertTrue(self.marshal(b'A').isupper())
self.assertFalse(self.marshal(b'\n').isupper())
- self.assert_(self.marshal(b'ABC').isupper())
+ self.assertTrue(self.marshal(b'ABC').isupper())
self.assertFalse(self.marshal(b'AbC').isupper())
- self.assert_(self.marshal(b'ABC\n').isupper())
+ self.assertTrue(self.marshal(b'ABC\n').isupper())
self.assertRaises(TypeError, self.marshal(b'abc').isupper, 42)
def test_istitle(self):
self.assertFalse(self.marshal(b'').istitle())
self.assertFalse(self.marshal(b'a').istitle())
- self.assert_(self.marshal(b'A').istitle())
+ self.assertTrue(self.marshal(b'A').istitle())
self.assertFalse(self.marshal(b'\n').istitle())
- self.assert_(self.marshal(b'A Titlecased Line').istitle())
- self.assert_(self.marshal(b'A\nTitlecased Line').istitle())
- self.assert_(self.marshal(b'A Titlecased, Line').istitle())
+ self.assertTrue(self.marshal(b'A Titlecased Line').istitle())
+ self.assertTrue(self.marshal(b'A\nTitlecased Line').istitle())
+ self.assertTrue(self.marshal(b'A Titlecased, Line').istitle())
self.assertFalse(self.marshal(b'Not a capitalized String').istitle())
self.assertFalse(self.marshal(b'Not\ta Titlecase String').istitle())
self.assertFalse(self.marshal(b'Not--a Titlecase String').istitle())
@@ -50,31 +50,31 @@
def test_isspace(self):
self.assertFalse(self.marshal(b'').isspace())
self.assertFalse(self.marshal(b'a').isspace())
- self.assert_(self.marshal(b' ').isspace())
- self.assert_(self.marshal(b'\t').isspace())
- self.assert_(self.marshal(b'\r').isspace())
- self.assert_(self.marshal(b'\n').isspace())
- self.assert_(self.marshal(b' \t\r\n').isspace())
+ self.assertTrue(self.marshal(b' ').isspace())
+ self.assertTrue(self.marshal(b'\t').isspace())
+ self.assertTrue(self.marshal(b'\r').isspace())
+ self.assertTrue(self.marshal(b'\n').isspace())
+ self.assertTrue(self.marshal(b' \t\r\n').isspace())
self.assertFalse(self.marshal(b' \t\r\na').isspace())
self.assertRaises(TypeError, self.marshal(b'abc').isspace, 42)
def test_isalpha(self):
self.assertFalse(self.marshal(b'').isalpha())
- self.assert_(self.marshal(b'a').isalpha())
- self.assert_(self.marshal(b'A').isalpha())
+ self.assertTrue(self.marshal(b'a').isalpha())
+ self.assertTrue(self.marshal(b'A').isalpha())
self.assertFalse(self.marshal(b'\n').isalpha())
- self.assert_(self.marshal(b'abc').isalpha())
+ self.assertTrue(self.marshal(b'abc').isalpha())
self.assertFalse(self.marshal(b'aBc123').isalpha())
self.assertFalse(self.marshal(b'abc\n').isalpha())
self.assertRaises(TypeError, self.marshal(b'abc').isalpha, 42)
def test_isalnum(self):
self.assertFalse(self.marshal(b'').isalnum())
- self.assert_(self.marshal(b'a').isalnum())
- self.assert_(self.marshal(b'A').isalnum())
+ self.assertTrue(self.marshal(b'a').isalnum())
+ self.assertTrue(self.marshal(b'A').isalnum())
self.assertFalse(self.marshal(b'\n').isalnum())
- self.assert_(self.marshal(b'123abc456').isalnum())
- self.assert_(self.marshal(b'a1b3c').isalnum())
+ self.assertTrue(self.marshal(b'123abc456').isalnum())
+ self.assertTrue(self.marshal(b'a1b3c').isalnum())
self.assertFalse(self.marshal(b'aBc000 ').isalnum())
self.assertFalse(self.marshal(b'abc\n').isalnum())
self.assertRaises(TypeError, self.marshal(b'abc').isalnum, 42)
@@ -82,8 +82,8 @@
def test_isdigit(self):
self.assertFalse(self.marshal(b'').isdigit())
self.assertFalse(self.marshal(b'a').isdigit())
- self.assert_(self.marshal(b'0').isdigit())
- self.assert_(self.marshal(b'0123456789').isdigit())
+ self.assertTrue(self.marshal(b'0').isdigit())
+ self.assertTrue(self.marshal(b'0123456789').isdigit())
self.assertFalse(self.marshal(b'0123456789a').isdigit())
self.assertRaises(TypeError, self.marshal(b'abc').isdigit, 42)
diff --git a/lib-python/2.7.0/test/cfgparser.1 b/lib-python/2.7/test/cfgparser.1
rename from lib-python/2.7.0/test/cfgparser.1
rename to lib-python/2.7/test/cfgparser.1
diff --git a/lib-python/2.7.0/test/check_soundcard.vbs b/lib-python/2.7/test/check_soundcard.vbs
rename from lib-python/2.7.0/test/check_soundcard.vbs
rename to lib-python/2.7/test/check_soundcard.vbs
diff --git a/lib-python/2.7.0/test/cjkencodings_test.py b/lib-python/2.7/test/cjkencodings_test.py
rename from lib-python/2.7.0/test/cjkencodings_test.py
rename to lib-python/2.7/test/cjkencodings_test.py
diff --git a/lib-python/2.7.0/test/cmath_testcases.txt b/lib-python/2.7/test/cmath_testcases.txt
rename from lib-python/2.7.0/test/cmath_testcases.txt
rename to lib-python/2.7/test/cmath_testcases.txt
diff --git a/lib-python/2.7.0/test/crashers/README b/lib-python/2.7/test/crashers/README
rename from lib-python/2.7.0/test/crashers/README
rename to lib-python/2.7/test/crashers/README
diff --git a/lib-python/2.7.0/test/crashers/bogus_code_obj.py b/lib-python/2.7/test/crashers/bogus_code_obj.py
rename from lib-python/2.7.0/test/crashers/bogus_code_obj.py
rename to lib-python/2.7/test/crashers/bogus_code_obj.py
diff --git a/lib-python/2.7.0/test/crashers/borrowed_ref_1.py b/lib-python/2.7/test/crashers/borrowed_ref_1.py
rename from lib-python/2.7.0/test/crashers/borrowed_ref_1.py
rename to lib-python/2.7/test/crashers/borrowed_ref_1.py
diff --git a/lib-python/2.7.0/test/crashers/borrowed_ref_2.py b/lib-python/2.7/test/crashers/borrowed_ref_2.py
rename from lib-python/2.7.0/test/crashers/borrowed_ref_2.py
rename to lib-python/2.7/test/crashers/borrowed_ref_2.py
diff --git a/lib-python/2.7.0/test/crashers/compiler_recursion.py b/lib-python/2.7/test/crashers/compiler_recursion.py
rename from lib-python/2.7.0/test/crashers/compiler_recursion.py
rename to lib-python/2.7/test/crashers/compiler_recursion.py
diff --git a/lib-python/2.7.0/test/crashers/gc_has_finalizer.py b/lib-python/2.7/test/crashers/gc_has_finalizer.py
rename from lib-python/2.7.0/test/crashers/gc_has_finalizer.py
rename to lib-python/2.7/test/crashers/gc_has_finalizer.py
diff --git a/lib-python/2.7.0/test/crashers/gc_inspection.py b/lib-python/2.7/test/crashers/gc_inspection.py
rename from lib-python/2.7.0/test/crashers/gc_inspection.py
rename to lib-python/2.7/test/crashers/gc_inspection.py
diff --git a/lib-python/2.7.0/test/crashers/infinite_loop_re.py b/lib-python/2.7/test/crashers/infinite_loop_re.py
rename from lib-python/2.7.0/test/crashers/infinite_loop_re.py
rename to lib-python/2.7/test/crashers/infinite_loop_re.py
diff --git a/lib-python/2.7.0/test/crashers/loosing_mro_ref.py b/lib-python/2.7/test/crashers/loosing_mro_ref.py
rename from lib-python/2.7.0/test/crashers/loosing_mro_ref.py
rename to lib-python/2.7/test/crashers/loosing_mro_ref.py
diff --git a/lib-python/2.7.0/test/crashers/mutation_inside_cyclegc.py b/lib-python/2.7/test/crashers/mutation_inside_cyclegc.py
rename from lib-python/2.7.0/test/crashers/mutation_inside_cyclegc.py
rename to lib-python/2.7/test/crashers/mutation_inside_cyclegc.py
diff --git a/lib-python/2.7.0/test/crashers/nasty_eq_vs_dict.py b/lib-python/2.7/test/crashers/nasty_eq_vs_dict.py
rename from lib-python/2.7.0/test/crashers/nasty_eq_vs_dict.py
rename to lib-python/2.7/test/crashers/nasty_eq_vs_dict.py
diff --git a/lib-python/2.7.0/test/crashers/recursion_limit_too_high.py b/lib-python/2.7/test/crashers/recursion_limit_too_high.py
rename from lib-python/2.7.0/test/crashers/recursion_limit_too_high.py
rename to lib-python/2.7/test/crashers/recursion_limit_too_high.py
diff --git a/lib-python/2.7.0/test/crashers/recursive_call.py b/lib-python/2.7/test/crashers/recursive_call.py
rename from lib-python/2.7.0/test/crashers/recursive_call.py
rename to lib-python/2.7/test/crashers/recursive_call.py
diff --git a/lib-python/2.7.0/test/curses_tests.py b/lib-python/2.7/test/curses_tests.py
rename from lib-python/2.7.0/test/curses_tests.py
rename to lib-python/2.7/test/curses_tests.py
diff --git a/lib-python/2.7.0/test/data/README b/lib-python/2.7/test/data/README
rename from lib-python/2.7.0/test/data/README
rename to lib-python/2.7/test/data/README
diff --git a/lib-python/2.7.0/test/decimaltestdata/abs.decTest b/lib-python/2.7/test/decimaltestdata/abs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/abs.decTest
rename to lib-python/2.7/test/decimaltestdata/abs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/add.decTest b/lib-python/2.7/test/decimaltestdata/add.decTest
rename from lib-python/2.7.0/test/decimaltestdata/add.decTest
rename to lib-python/2.7/test/decimaltestdata/add.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/and.decTest b/lib-python/2.7/test/decimaltestdata/and.decTest
rename from lib-python/2.7.0/test/decimaltestdata/and.decTest
rename to lib-python/2.7/test/decimaltestdata/and.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/base.decTest b/lib-python/2.7/test/decimaltestdata/base.decTest
rename from lib-python/2.7.0/test/decimaltestdata/base.decTest
rename to lib-python/2.7/test/decimaltestdata/base.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/clamp.decTest b/lib-python/2.7/test/decimaltestdata/clamp.decTest
rename from lib-python/2.7.0/test/decimaltestdata/clamp.decTest
rename to lib-python/2.7/test/decimaltestdata/clamp.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/class.decTest b/lib-python/2.7/test/decimaltestdata/class.decTest
rename from lib-python/2.7.0/test/decimaltestdata/class.decTest
rename to lib-python/2.7/test/decimaltestdata/class.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/compare.decTest b/lib-python/2.7/test/decimaltestdata/compare.decTest
rename from lib-python/2.7.0/test/decimaltestdata/compare.decTest
rename to lib-python/2.7/test/decimaltestdata/compare.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/comparetotal.decTest b/lib-python/2.7/test/decimaltestdata/comparetotal.decTest
rename from lib-python/2.7.0/test/decimaltestdata/comparetotal.decTest
rename to lib-python/2.7/test/decimaltestdata/comparetotal.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/comparetotmag.decTest b/lib-python/2.7/test/decimaltestdata/comparetotmag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/comparetotmag.decTest
rename to lib-python/2.7/test/decimaltestdata/comparetotmag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/copy.decTest b/lib-python/2.7/test/decimaltestdata/copy.decTest
rename from lib-python/2.7.0/test/decimaltestdata/copy.decTest
rename to lib-python/2.7/test/decimaltestdata/copy.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/copyabs.decTest b/lib-python/2.7/test/decimaltestdata/copyabs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/copyabs.decTest
rename to lib-python/2.7/test/decimaltestdata/copyabs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/copynegate.decTest b/lib-python/2.7/test/decimaltestdata/copynegate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/copynegate.decTest
rename to lib-python/2.7/test/decimaltestdata/copynegate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/copysign.decTest b/lib-python/2.7/test/decimaltestdata/copysign.decTest
rename from lib-python/2.7.0/test/decimaltestdata/copysign.decTest
rename to lib-python/2.7/test/decimaltestdata/copysign.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddAbs.decTest b/lib-python/2.7/test/decimaltestdata/ddAbs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddAbs.decTest
rename to lib-python/2.7/test/decimaltestdata/ddAbs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddAdd.decTest b/lib-python/2.7/test/decimaltestdata/ddAdd.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddAdd.decTest
rename to lib-python/2.7/test/decimaltestdata/ddAdd.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddAnd.decTest b/lib-python/2.7/test/decimaltestdata/ddAnd.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddAnd.decTest
rename to lib-python/2.7/test/decimaltestdata/ddAnd.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddBase.decTest b/lib-python/2.7/test/decimaltestdata/ddBase.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddBase.decTest
rename to lib-python/2.7/test/decimaltestdata/ddBase.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCanonical.decTest b/lib-python/2.7/test/decimaltestdata/ddCanonical.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCanonical.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCanonical.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddClass.decTest b/lib-python/2.7/test/decimaltestdata/ddClass.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddClass.decTest
rename to lib-python/2.7/test/decimaltestdata/ddClass.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCompare.decTest b/lib-python/2.7/test/decimaltestdata/ddCompare.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCompare.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCompare.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCompareSig.decTest b/lib-python/2.7/test/decimaltestdata/ddCompareSig.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCompareSig.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCompareSig.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCompareTotal.decTest b/lib-python/2.7/test/decimaltestdata/ddCompareTotal.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCompareTotal.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCompareTotal.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCompareTotalMag.decTest b/lib-python/2.7/test/decimaltestdata/ddCompareTotalMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCompareTotalMag.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCompareTotalMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCopy.decTest b/lib-python/2.7/test/decimaltestdata/ddCopy.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCopy.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCopy.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCopyAbs.decTest b/lib-python/2.7/test/decimaltestdata/ddCopyAbs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCopyAbs.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCopyAbs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCopyNegate.decTest b/lib-python/2.7/test/decimaltestdata/ddCopyNegate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCopyNegate.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCopyNegate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddCopySign.decTest b/lib-python/2.7/test/decimaltestdata/ddCopySign.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddCopySign.decTest
rename to lib-python/2.7/test/decimaltestdata/ddCopySign.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddDivide.decTest b/lib-python/2.7/test/decimaltestdata/ddDivide.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddDivide.decTest
rename to lib-python/2.7/test/decimaltestdata/ddDivide.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddDivideInt.decTest b/lib-python/2.7/test/decimaltestdata/ddDivideInt.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddDivideInt.decTest
rename to lib-python/2.7/test/decimaltestdata/ddDivideInt.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddEncode.decTest b/lib-python/2.7/test/decimaltestdata/ddEncode.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddEncode.decTest
rename to lib-python/2.7/test/decimaltestdata/ddEncode.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddFMA.decTest b/lib-python/2.7/test/decimaltestdata/ddFMA.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddFMA.decTest
rename to lib-python/2.7/test/decimaltestdata/ddFMA.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddInvert.decTest b/lib-python/2.7/test/decimaltestdata/ddInvert.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddInvert.decTest
rename to lib-python/2.7/test/decimaltestdata/ddInvert.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddLogB.decTest b/lib-python/2.7/test/decimaltestdata/ddLogB.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddLogB.decTest
rename to lib-python/2.7/test/decimaltestdata/ddLogB.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMax.decTest b/lib-python/2.7/test/decimaltestdata/ddMax.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMax.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMax.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMaxMag.decTest b/lib-python/2.7/test/decimaltestdata/ddMaxMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMaxMag.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMaxMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMin.decTest b/lib-python/2.7/test/decimaltestdata/ddMin.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMin.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMin.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMinMag.decTest b/lib-python/2.7/test/decimaltestdata/ddMinMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMinMag.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMinMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMinus.decTest b/lib-python/2.7/test/decimaltestdata/ddMinus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMinus.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMinus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddMultiply.decTest b/lib-python/2.7/test/decimaltestdata/ddMultiply.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddMultiply.decTest
rename to lib-python/2.7/test/decimaltestdata/ddMultiply.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddNextMinus.decTest b/lib-python/2.7/test/decimaltestdata/ddNextMinus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddNextMinus.decTest
rename to lib-python/2.7/test/decimaltestdata/ddNextMinus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddNextPlus.decTest b/lib-python/2.7/test/decimaltestdata/ddNextPlus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddNextPlus.decTest
rename to lib-python/2.7/test/decimaltestdata/ddNextPlus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddNextToward.decTest b/lib-python/2.7/test/decimaltestdata/ddNextToward.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddNextToward.decTest
rename to lib-python/2.7/test/decimaltestdata/ddNextToward.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddOr.decTest b/lib-python/2.7/test/decimaltestdata/ddOr.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddOr.decTest
rename to lib-python/2.7/test/decimaltestdata/ddOr.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddPlus.decTest b/lib-python/2.7/test/decimaltestdata/ddPlus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddPlus.decTest
rename to lib-python/2.7/test/decimaltestdata/ddPlus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddQuantize.decTest b/lib-python/2.7/test/decimaltestdata/ddQuantize.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddQuantize.decTest
rename to lib-python/2.7/test/decimaltestdata/ddQuantize.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddReduce.decTest b/lib-python/2.7/test/decimaltestdata/ddReduce.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddReduce.decTest
rename to lib-python/2.7/test/decimaltestdata/ddReduce.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddRemainder.decTest b/lib-python/2.7/test/decimaltestdata/ddRemainder.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddRemainder.decTest
rename to lib-python/2.7/test/decimaltestdata/ddRemainder.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddRemainderNear.decTest b/lib-python/2.7/test/decimaltestdata/ddRemainderNear.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddRemainderNear.decTest
rename to lib-python/2.7/test/decimaltestdata/ddRemainderNear.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddRotate.decTest b/lib-python/2.7/test/decimaltestdata/ddRotate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddRotate.decTest
rename to lib-python/2.7/test/decimaltestdata/ddRotate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddSameQuantum.decTest b/lib-python/2.7/test/decimaltestdata/ddSameQuantum.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddSameQuantum.decTest
rename to lib-python/2.7/test/decimaltestdata/ddSameQuantum.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddScaleB.decTest b/lib-python/2.7/test/decimaltestdata/ddScaleB.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddScaleB.decTest
rename to lib-python/2.7/test/decimaltestdata/ddScaleB.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddShift.decTest b/lib-python/2.7/test/decimaltestdata/ddShift.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddShift.decTest
rename to lib-python/2.7/test/decimaltestdata/ddShift.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddSubtract.decTest b/lib-python/2.7/test/decimaltestdata/ddSubtract.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddSubtract.decTest
rename to lib-python/2.7/test/decimaltestdata/ddSubtract.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddToIntegral.decTest b/lib-python/2.7/test/decimaltestdata/ddToIntegral.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddToIntegral.decTest
rename to lib-python/2.7/test/decimaltestdata/ddToIntegral.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ddXor.decTest b/lib-python/2.7/test/decimaltestdata/ddXor.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ddXor.decTest
rename to lib-python/2.7/test/decimaltestdata/ddXor.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/decDouble.decTest b/lib-python/2.7/test/decimaltestdata/decDouble.decTest
rename from lib-python/2.7.0/test/decimaltestdata/decDouble.decTest
rename to lib-python/2.7/test/decimaltestdata/decDouble.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/decQuad.decTest b/lib-python/2.7/test/decimaltestdata/decQuad.decTest
rename from lib-python/2.7.0/test/decimaltestdata/decQuad.decTest
rename to lib-python/2.7/test/decimaltestdata/decQuad.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/decSingle.decTest b/lib-python/2.7/test/decimaltestdata/decSingle.decTest
rename from lib-python/2.7.0/test/decimaltestdata/decSingle.decTest
rename to lib-python/2.7/test/decimaltestdata/decSingle.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/divide.decTest b/lib-python/2.7/test/decimaltestdata/divide.decTest
rename from lib-python/2.7.0/test/decimaltestdata/divide.decTest
rename to lib-python/2.7/test/decimaltestdata/divide.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/divideint.decTest b/lib-python/2.7/test/decimaltestdata/divideint.decTest
rename from lib-python/2.7.0/test/decimaltestdata/divideint.decTest
rename to lib-python/2.7/test/decimaltestdata/divideint.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqAbs.decTest b/lib-python/2.7/test/decimaltestdata/dqAbs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqAbs.decTest
rename to lib-python/2.7/test/decimaltestdata/dqAbs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqAdd.decTest b/lib-python/2.7/test/decimaltestdata/dqAdd.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqAdd.decTest
rename to lib-python/2.7/test/decimaltestdata/dqAdd.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqAnd.decTest b/lib-python/2.7/test/decimaltestdata/dqAnd.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqAnd.decTest
rename to lib-python/2.7/test/decimaltestdata/dqAnd.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqBase.decTest b/lib-python/2.7/test/decimaltestdata/dqBase.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqBase.decTest
rename to lib-python/2.7/test/decimaltestdata/dqBase.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCanonical.decTest b/lib-python/2.7/test/decimaltestdata/dqCanonical.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCanonical.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCanonical.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqClass.decTest b/lib-python/2.7/test/decimaltestdata/dqClass.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqClass.decTest
rename to lib-python/2.7/test/decimaltestdata/dqClass.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCompare.decTest b/lib-python/2.7/test/decimaltestdata/dqCompare.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCompare.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCompare.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCompareSig.decTest b/lib-python/2.7/test/decimaltestdata/dqCompareSig.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCompareSig.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCompareSig.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCompareTotal.decTest b/lib-python/2.7/test/decimaltestdata/dqCompareTotal.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCompareTotal.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCompareTotal.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCompareTotalMag.decTest b/lib-python/2.7/test/decimaltestdata/dqCompareTotalMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCompareTotalMag.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCompareTotalMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCopy.decTest b/lib-python/2.7/test/decimaltestdata/dqCopy.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCopy.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCopy.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCopyAbs.decTest b/lib-python/2.7/test/decimaltestdata/dqCopyAbs.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCopyAbs.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCopyAbs.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCopyNegate.decTest b/lib-python/2.7/test/decimaltestdata/dqCopyNegate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCopyNegate.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCopyNegate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqCopySign.decTest b/lib-python/2.7/test/decimaltestdata/dqCopySign.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqCopySign.decTest
rename to lib-python/2.7/test/decimaltestdata/dqCopySign.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqDivide.decTest b/lib-python/2.7/test/decimaltestdata/dqDivide.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqDivide.decTest
rename to lib-python/2.7/test/decimaltestdata/dqDivide.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqDivideInt.decTest b/lib-python/2.7/test/decimaltestdata/dqDivideInt.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqDivideInt.decTest
rename to lib-python/2.7/test/decimaltestdata/dqDivideInt.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqEncode.decTest b/lib-python/2.7/test/decimaltestdata/dqEncode.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqEncode.decTest
rename to lib-python/2.7/test/decimaltestdata/dqEncode.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqFMA.decTest b/lib-python/2.7/test/decimaltestdata/dqFMA.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqFMA.decTest
rename to lib-python/2.7/test/decimaltestdata/dqFMA.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqInvert.decTest b/lib-python/2.7/test/decimaltestdata/dqInvert.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqInvert.decTest
rename to lib-python/2.7/test/decimaltestdata/dqInvert.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqLogB.decTest b/lib-python/2.7/test/decimaltestdata/dqLogB.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqLogB.decTest
rename to lib-python/2.7/test/decimaltestdata/dqLogB.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMax.decTest b/lib-python/2.7/test/decimaltestdata/dqMax.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMax.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMax.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMaxMag.decTest b/lib-python/2.7/test/decimaltestdata/dqMaxMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMaxMag.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMaxMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMin.decTest b/lib-python/2.7/test/decimaltestdata/dqMin.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMin.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMin.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMinMag.decTest b/lib-python/2.7/test/decimaltestdata/dqMinMag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMinMag.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMinMag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMinus.decTest b/lib-python/2.7/test/decimaltestdata/dqMinus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMinus.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMinus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqMultiply.decTest b/lib-python/2.7/test/decimaltestdata/dqMultiply.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqMultiply.decTest
rename to lib-python/2.7/test/decimaltestdata/dqMultiply.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqNextMinus.decTest b/lib-python/2.7/test/decimaltestdata/dqNextMinus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqNextMinus.decTest
rename to lib-python/2.7/test/decimaltestdata/dqNextMinus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqNextPlus.decTest b/lib-python/2.7/test/decimaltestdata/dqNextPlus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqNextPlus.decTest
rename to lib-python/2.7/test/decimaltestdata/dqNextPlus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqNextToward.decTest b/lib-python/2.7/test/decimaltestdata/dqNextToward.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqNextToward.decTest
rename to lib-python/2.7/test/decimaltestdata/dqNextToward.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqOr.decTest b/lib-python/2.7/test/decimaltestdata/dqOr.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqOr.decTest
rename to lib-python/2.7/test/decimaltestdata/dqOr.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqPlus.decTest b/lib-python/2.7/test/decimaltestdata/dqPlus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqPlus.decTest
rename to lib-python/2.7/test/decimaltestdata/dqPlus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqQuantize.decTest b/lib-python/2.7/test/decimaltestdata/dqQuantize.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqQuantize.decTest
rename to lib-python/2.7/test/decimaltestdata/dqQuantize.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqReduce.decTest b/lib-python/2.7/test/decimaltestdata/dqReduce.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqReduce.decTest
rename to lib-python/2.7/test/decimaltestdata/dqReduce.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqRemainder.decTest b/lib-python/2.7/test/decimaltestdata/dqRemainder.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqRemainder.decTest
rename to lib-python/2.7/test/decimaltestdata/dqRemainder.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqRemainderNear.decTest b/lib-python/2.7/test/decimaltestdata/dqRemainderNear.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqRemainderNear.decTest
rename to lib-python/2.7/test/decimaltestdata/dqRemainderNear.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqRotate.decTest b/lib-python/2.7/test/decimaltestdata/dqRotate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqRotate.decTest
rename to lib-python/2.7/test/decimaltestdata/dqRotate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqSameQuantum.decTest b/lib-python/2.7/test/decimaltestdata/dqSameQuantum.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqSameQuantum.decTest
rename to lib-python/2.7/test/decimaltestdata/dqSameQuantum.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqScaleB.decTest b/lib-python/2.7/test/decimaltestdata/dqScaleB.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqScaleB.decTest
rename to lib-python/2.7/test/decimaltestdata/dqScaleB.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqShift.decTest b/lib-python/2.7/test/decimaltestdata/dqShift.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqShift.decTest
rename to lib-python/2.7/test/decimaltestdata/dqShift.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqSubtract.decTest b/lib-python/2.7/test/decimaltestdata/dqSubtract.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqSubtract.decTest
rename to lib-python/2.7/test/decimaltestdata/dqSubtract.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqToIntegral.decTest b/lib-python/2.7/test/decimaltestdata/dqToIntegral.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqToIntegral.decTest
rename to lib-python/2.7/test/decimaltestdata/dqToIntegral.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dqXor.decTest b/lib-python/2.7/test/decimaltestdata/dqXor.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dqXor.decTest
rename to lib-python/2.7/test/decimaltestdata/dqXor.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dsBase.decTest b/lib-python/2.7/test/decimaltestdata/dsBase.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dsBase.decTest
rename to lib-python/2.7/test/decimaltestdata/dsBase.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/dsEncode.decTest b/lib-python/2.7/test/decimaltestdata/dsEncode.decTest
rename from lib-python/2.7.0/test/decimaltestdata/dsEncode.decTest
rename to lib-python/2.7/test/decimaltestdata/dsEncode.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/exp.decTest b/lib-python/2.7/test/decimaltestdata/exp.decTest
rename from lib-python/2.7.0/test/decimaltestdata/exp.decTest
rename to lib-python/2.7/test/decimaltestdata/exp.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/extra.decTest b/lib-python/2.7/test/decimaltestdata/extra.decTest
rename from lib-python/2.7.0/test/decimaltestdata/extra.decTest
rename to lib-python/2.7/test/decimaltestdata/extra.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/fma.decTest b/lib-python/2.7/test/decimaltestdata/fma.decTest
rename from lib-python/2.7.0/test/decimaltestdata/fma.decTest
rename to lib-python/2.7/test/decimaltestdata/fma.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/inexact.decTest b/lib-python/2.7/test/decimaltestdata/inexact.decTest
rename from lib-python/2.7.0/test/decimaltestdata/inexact.decTest
rename to lib-python/2.7/test/decimaltestdata/inexact.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/invert.decTest b/lib-python/2.7/test/decimaltestdata/invert.decTest
rename from lib-python/2.7.0/test/decimaltestdata/invert.decTest
rename to lib-python/2.7/test/decimaltestdata/invert.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/ln.decTest b/lib-python/2.7/test/decimaltestdata/ln.decTest
rename from lib-python/2.7.0/test/decimaltestdata/ln.decTest
rename to lib-python/2.7/test/decimaltestdata/ln.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/log10.decTest b/lib-python/2.7/test/decimaltestdata/log10.decTest
rename from lib-python/2.7.0/test/decimaltestdata/log10.decTest
rename to lib-python/2.7/test/decimaltestdata/log10.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/logb.decTest b/lib-python/2.7/test/decimaltestdata/logb.decTest
rename from lib-python/2.7.0/test/decimaltestdata/logb.decTest
rename to lib-python/2.7/test/decimaltestdata/logb.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/max.decTest b/lib-python/2.7/test/decimaltestdata/max.decTest
rename from lib-python/2.7.0/test/decimaltestdata/max.decTest
rename to lib-python/2.7/test/decimaltestdata/max.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/maxmag.decTest b/lib-python/2.7/test/decimaltestdata/maxmag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/maxmag.decTest
rename to lib-python/2.7/test/decimaltestdata/maxmag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/min.decTest b/lib-python/2.7/test/decimaltestdata/min.decTest
rename from lib-python/2.7.0/test/decimaltestdata/min.decTest
rename to lib-python/2.7/test/decimaltestdata/min.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/minmag.decTest b/lib-python/2.7/test/decimaltestdata/minmag.decTest
rename from lib-python/2.7.0/test/decimaltestdata/minmag.decTest
rename to lib-python/2.7/test/decimaltestdata/minmag.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/minus.decTest b/lib-python/2.7/test/decimaltestdata/minus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/minus.decTest
rename to lib-python/2.7/test/decimaltestdata/minus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/multiply.decTest b/lib-python/2.7/test/decimaltestdata/multiply.decTest
rename from lib-python/2.7.0/test/decimaltestdata/multiply.decTest
rename to lib-python/2.7/test/decimaltestdata/multiply.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/nextminus.decTest b/lib-python/2.7/test/decimaltestdata/nextminus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/nextminus.decTest
rename to lib-python/2.7/test/decimaltestdata/nextminus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/nextplus.decTest b/lib-python/2.7/test/decimaltestdata/nextplus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/nextplus.decTest
rename to lib-python/2.7/test/decimaltestdata/nextplus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/nexttoward.decTest b/lib-python/2.7/test/decimaltestdata/nexttoward.decTest
rename from lib-python/2.7.0/test/decimaltestdata/nexttoward.decTest
rename to lib-python/2.7/test/decimaltestdata/nexttoward.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/or.decTest b/lib-python/2.7/test/decimaltestdata/or.decTest
rename from lib-python/2.7.0/test/decimaltestdata/or.decTest
rename to lib-python/2.7/test/decimaltestdata/or.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/plus.decTest b/lib-python/2.7/test/decimaltestdata/plus.decTest
rename from lib-python/2.7.0/test/decimaltestdata/plus.decTest
rename to lib-python/2.7/test/decimaltestdata/plus.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/power.decTest b/lib-python/2.7/test/decimaltestdata/power.decTest
rename from lib-python/2.7.0/test/decimaltestdata/power.decTest
rename to lib-python/2.7/test/decimaltestdata/power.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/powersqrt.decTest b/lib-python/2.7/test/decimaltestdata/powersqrt.decTest
rename from lib-python/2.7.0/test/decimaltestdata/powersqrt.decTest
rename to lib-python/2.7/test/decimaltestdata/powersqrt.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/quantize.decTest b/lib-python/2.7/test/decimaltestdata/quantize.decTest
rename from lib-python/2.7.0/test/decimaltestdata/quantize.decTest
rename to lib-python/2.7/test/decimaltestdata/quantize.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/randomBound32.decTest b/lib-python/2.7/test/decimaltestdata/randomBound32.decTest
rename from lib-python/2.7.0/test/decimaltestdata/randomBound32.decTest
rename to lib-python/2.7/test/decimaltestdata/randomBound32.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/randoms.decTest b/lib-python/2.7/test/decimaltestdata/randoms.decTest
rename from lib-python/2.7.0/test/decimaltestdata/randoms.decTest
rename to lib-python/2.7/test/decimaltestdata/randoms.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/reduce.decTest b/lib-python/2.7/test/decimaltestdata/reduce.decTest
rename from lib-python/2.7.0/test/decimaltestdata/reduce.decTest
rename to lib-python/2.7/test/decimaltestdata/reduce.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/remainder.decTest b/lib-python/2.7/test/decimaltestdata/remainder.decTest
rename from lib-python/2.7.0/test/decimaltestdata/remainder.decTest
rename to lib-python/2.7/test/decimaltestdata/remainder.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/remainderNear.decTest b/lib-python/2.7/test/decimaltestdata/remainderNear.decTest
rename from lib-python/2.7.0/test/decimaltestdata/remainderNear.decTest
rename to lib-python/2.7/test/decimaltestdata/remainderNear.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/rescale.decTest b/lib-python/2.7/test/decimaltestdata/rescale.decTest
rename from lib-python/2.7.0/test/decimaltestdata/rescale.decTest
rename to lib-python/2.7/test/decimaltestdata/rescale.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/rotate.decTest b/lib-python/2.7/test/decimaltestdata/rotate.decTest
rename from lib-python/2.7.0/test/decimaltestdata/rotate.decTest
rename to lib-python/2.7/test/decimaltestdata/rotate.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/rounding.decTest b/lib-python/2.7/test/decimaltestdata/rounding.decTest
rename from lib-python/2.7.0/test/decimaltestdata/rounding.decTest
rename to lib-python/2.7/test/decimaltestdata/rounding.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/samequantum.decTest b/lib-python/2.7/test/decimaltestdata/samequantum.decTest
rename from lib-python/2.7.0/test/decimaltestdata/samequantum.decTest
rename to lib-python/2.7/test/decimaltestdata/samequantum.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/scaleb.decTest b/lib-python/2.7/test/decimaltestdata/scaleb.decTest
rename from lib-python/2.7.0/test/decimaltestdata/scaleb.decTest
rename to lib-python/2.7/test/decimaltestdata/scaleb.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/shift.decTest b/lib-python/2.7/test/decimaltestdata/shift.decTest
rename from lib-python/2.7.0/test/decimaltestdata/shift.decTest
rename to lib-python/2.7/test/decimaltestdata/shift.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/squareroot.decTest b/lib-python/2.7/test/decimaltestdata/squareroot.decTest
rename from lib-python/2.7.0/test/decimaltestdata/squareroot.decTest
rename to lib-python/2.7/test/decimaltestdata/squareroot.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/subtract.decTest b/lib-python/2.7/test/decimaltestdata/subtract.decTest
rename from lib-python/2.7.0/test/decimaltestdata/subtract.decTest
rename to lib-python/2.7/test/decimaltestdata/subtract.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/testall.decTest b/lib-python/2.7/test/decimaltestdata/testall.decTest
rename from lib-python/2.7.0/test/decimaltestdata/testall.decTest
rename to lib-python/2.7/test/decimaltestdata/testall.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/tointegral.decTest b/lib-python/2.7/test/decimaltestdata/tointegral.decTest
rename from lib-python/2.7.0/test/decimaltestdata/tointegral.decTest
rename to lib-python/2.7/test/decimaltestdata/tointegral.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/tointegralx.decTest b/lib-python/2.7/test/decimaltestdata/tointegralx.decTest
rename from lib-python/2.7.0/test/decimaltestdata/tointegralx.decTest
rename to lib-python/2.7/test/decimaltestdata/tointegralx.decTest
diff --git a/lib-python/2.7.0/test/decimaltestdata/xor.decTest b/lib-python/2.7/test/decimaltestdata/xor.decTest
rename from lib-python/2.7.0/test/decimaltestdata/xor.decTest
rename to lib-python/2.7/test/decimaltestdata/xor.decTest
diff --git a/lib-python/2.7.0/test/doctest_aliases.py b/lib-python/2.7/test/doctest_aliases.py
rename from lib-python/2.7.0/test/doctest_aliases.py
rename to lib-python/2.7/test/doctest_aliases.py
diff --git a/lib-python/2.7.0/test/double_const.py b/lib-python/2.7/test/double_const.py
rename from lib-python/2.7.0/test/double_const.py
rename to lib-python/2.7/test/double_const.py
diff --git a/lib-python/2.7.0/test/empty.vbs b/lib-python/2.7/test/empty.vbs
rename from lib-python/2.7.0/test/empty.vbs
rename to lib-python/2.7/test/empty.vbs
diff --git a/lib-python/2.7.0/test/exception_hierarchy.txt b/lib-python/2.7/test/exception_hierarchy.txt
rename from lib-python/2.7.0/test/exception_hierarchy.txt
rename to lib-python/2.7/test/exception_hierarchy.txt
diff --git a/lib-python/2.7.0/test/floating_points.txt b/lib-python/2.7/test/floating_points.txt
rename from lib-python/2.7.0/test/floating_points.txt
rename to lib-python/2.7/test/floating_points.txt
diff --git a/lib-python/2.7.0/test/fork_wait.py b/lib-python/2.7/test/fork_wait.py
rename from lib-python/2.7.0/test/fork_wait.py
rename to lib-python/2.7/test/fork_wait.py
--- a/lib-python/2.7.0/test/fork_wait.py
+++ b/lib-python/2.7/test/fork_wait.py
@@ -43,8 +43,8 @@
break
time.sleep(2 * SHORTSLEEP)
- self.assertEquals(spid, cpid)
- self.assertEquals(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))
+ self.assertEqual(spid, cpid)
+ self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))
def test_wait(self):
for i in range(NUM_THREADS):
@@ -54,7 +54,7 @@
a = self.alive.keys()
a.sort()
- self.assertEquals(a, range(NUM_THREADS))
+ self.assertEqual(a, range(NUM_THREADS))
prefork_lives = self.alive.copy()
diff --git a/lib-python/2.7.0/test/formatfloat_testcases.txt b/lib-python/2.7/test/formatfloat_testcases.txt
rename from lib-python/2.7.0/test/formatfloat_testcases.txt
rename to lib-python/2.7/test/formatfloat_testcases.txt
diff --git a/lib-python/2.7.0/test/gdb_sample.py b/lib-python/2.7/test/gdb_sample.py
rename from lib-python/2.7.0/test/gdb_sample.py
rename to lib-python/2.7/test/gdb_sample.py
diff --git a/lib-python/2.7.0/test/greyrgb.uue b/lib-python/2.7/test/greyrgb.uue
rename from lib-python/2.7.0/test/greyrgb.uue
rename to lib-python/2.7/test/greyrgb.uue
diff --git a/lib-python/2.7.0/test/https_svn_python_org_root.pem b/lib-python/2.7/test/https_svn_python_org_root.pem
rename from lib-python/2.7.0/test/https_svn_python_org_root.pem
rename to lib-python/2.7/test/https_svn_python_org_root.pem
diff --git a/lib-python/2.7.0/test/ieee754.txt b/lib-python/2.7/test/ieee754.txt
rename from lib-python/2.7.0/test/ieee754.txt
rename to lib-python/2.7/test/ieee754.txt
diff --git a/lib-python/2.7.0/test/infinite_reload.py b/lib-python/2.7/test/infinite_reload.py
rename from lib-python/2.7.0/test/infinite_reload.py
rename to lib-python/2.7/test/infinite_reload.py
diff --git a/lib-python/2.7.0/test/inspect_fodder.py b/lib-python/2.7/test/inspect_fodder.py
rename from lib-python/2.7.0/test/inspect_fodder.py
rename to lib-python/2.7/test/inspect_fodder.py
diff --git a/lib-python/2.7.0/test/inspect_fodder2.py b/lib-python/2.7/test/inspect_fodder2.py
rename from lib-python/2.7.0/test/inspect_fodder2.py
rename to lib-python/2.7/test/inspect_fodder2.py
diff --git a/lib-python/2.7.0/test/keycert.pem b/lib-python/2.7/test/keycert.pem
rename from lib-python/2.7.0/test/keycert.pem
rename to lib-python/2.7/test/keycert.pem
diff --git a/lib-python/2.7.0/test/leakers/README.txt b/lib-python/2.7/test/leakers/README.txt
rename from lib-python/2.7.0/test/leakers/README.txt
rename to lib-python/2.7/test/leakers/README.txt
diff --git a/lib-python/2.7.0/test/leakers/__init__.py b/lib-python/2.7/test/leakers/__init__.py
rename from lib-python/2.7.0/test/leakers/__init__.py
rename to lib-python/2.7/test/leakers/__init__.py
diff --git a/lib-python/2.7.0/test/leakers/test_ctypes.py b/lib-python/2.7/test/leakers/test_ctypes.py
rename from lib-python/2.7.0/test/leakers/test_ctypes.py
rename to lib-python/2.7/test/leakers/test_ctypes.py
diff --git a/lib-python/2.7.0/test/leakers/test_dictself.py b/lib-python/2.7/test/leakers/test_dictself.py
rename from lib-python/2.7.0/test/leakers/test_dictself.py
rename to lib-python/2.7/test/leakers/test_dictself.py
diff --git a/lib-python/2.7.0/test/leakers/test_gestalt.py b/lib-python/2.7/test/leakers/test_gestalt.py
rename from lib-python/2.7.0/test/leakers/test_gestalt.py
rename to lib-python/2.7/test/leakers/test_gestalt.py
diff --git a/lib-python/2.7.0/test/leakers/test_selftype.py b/lib-python/2.7/test/leakers/test_selftype.py
rename from lib-python/2.7.0/test/leakers/test_selftype.py
rename to lib-python/2.7/test/leakers/test_selftype.py
diff --git a/lib-python/2.7.0/test/list_tests.py b/lib-python/2.7/test/list_tests.py
rename from lib-python/2.7.0/test/list_tests.py
rename to lib-python/2.7/test/list_tests.py
--- a/lib-python/2.7.0/test/list_tests.py
+++ b/lib-python/2.7/test/list_tests.py
@@ -330,7 +330,7 @@
self.assertRaises(BadExc, d.remove, 'c')
for x, y in zip(d, e):
# verify that original order and values are retained.
- self.assert_(x is y)
+ self.assertIs(x, y)
def test_count(self):
a = self.type2test([0, 1, 2])*3
@@ -466,7 +466,7 @@
u = self.type2test([0, 1])
u2 = u
u += [2, 3]
- self.assert_(u is u2)
+ self.assertIs(u, u2)
u = self.type2test("spam")
u += "eggs"
diff --git a/lib-python/2.7.0/test/lock_tests.py b/lib-python/2.7/test/lock_tests.py
rename from lib-python/2.7.0/test/lock_tests.py
rename to lib-python/2.7/test/lock_tests.py
diff --git a/lib-python/2.7.0/test/mapping_tests.py b/lib-python/2.7/test/mapping_tests.py
rename from lib-python/2.7.0/test/mapping_tests.py
rename to lib-python/2.7/test/mapping_tests.py
diff --git a/lib-python/2.7.0/test/math_testcases.txt b/lib-python/2.7/test/math_testcases.txt
rename from lib-python/2.7.0/test/math_testcases.txt
rename to lib-python/2.7/test/math_testcases.txt
diff --git a/lib-python/2.7.0/test/nullcert.pem b/lib-python/2.7/test/nullcert.pem
rename from lib-python/2.7.0/test/nullcert.pem
rename to lib-python/2.7/test/nullcert.pem
diff --git a/lib-python/2.7.0/test/outstanding_bugs.py b/lib-python/2.7/test/outstanding_bugs.py
rename from lib-python/2.7.0/test/outstanding_bugs.py
rename to lib-python/2.7/test/outstanding_bugs.py
diff --git a/lib-python/2.7.0/test/pickletester.py b/lib-python/2.7/test/pickletester.py
rename from lib-python/2.7.0/test/pickletester.py
rename to lib-python/2.7/test/pickletester.py
diff --git a/lib-python/2.7.0/test/profilee.py b/lib-python/2.7/test/profilee.py
rename from lib-python/2.7.0/test/profilee.py
rename to lib-python/2.7/test/profilee.py
diff --git a/lib-python/2.7.0/test/pyclbr_input.py b/lib-python/2.7/test/pyclbr_input.py
rename from lib-python/2.7.0/test/pyclbr_input.py
rename to lib-python/2.7/test/pyclbr_input.py
diff --git a/lib-python/2.7.0/test/pydoc_mod.py b/lib-python/2.7/test/pydoc_mod.py
rename from lib-python/2.7.0/test/pydoc_mod.py
rename to lib-python/2.7/test/pydoc_mod.py
diff --git a/lib-python/2.7.0/test/pydocfodder.py b/lib-python/2.7/test/pydocfodder.py
rename from lib-python/2.7.0/test/pydocfodder.py
rename to lib-python/2.7/test/pydocfodder.py
diff --git a/lib-python/2.7.0/test/pystone.py b/lib-python/2.7/test/pystone.py
rename from lib-python/2.7.0/test/pystone.py
rename to lib-python/2.7/test/pystone.py
diff --git a/lib-python/2.7.0/test/randv2_32.pck b/lib-python/2.7/test/randv2_32.pck
rename from lib-python/2.7.0/test/randv2_32.pck
rename to lib-python/2.7/test/randv2_32.pck
diff --git a/lib-python/2.7.0/test/randv2_64.pck b/lib-python/2.7/test/randv2_64.pck
rename from lib-python/2.7.0/test/randv2_64.pck
rename to lib-python/2.7/test/randv2_64.pck
diff --git a/lib-python/2.7.0/test/randv3.pck b/lib-python/2.7/test/randv3.pck
rename from lib-python/2.7.0/test/randv3.pck
rename to lib-python/2.7/test/randv3.pck
diff --git a/lib-python/2.7.0/test/re_tests.py b/lib-python/2.7/test/re_tests.py
rename from lib-python/2.7.0/test/re_tests.py
rename to lib-python/2.7/test/re_tests.py
diff --git a/lib-python/2.7.0/test/regex_tests.py b/lib-python/2.7/test/regex_tests.py
rename from lib-python/2.7.0/test/regex_tests.py
rename to lib-python/2.7/test/regex_tests.py
diff --git a/lib-python/2.7.0/test/regrtest.py b/lib-python/2.7/test/regrtest.py
rename from lib-python/2.7.0/test/regrtest.py
rename to lib-python/2.7/test/regrtest.py
diff --git a/lib-python/2.7.0/test/relimport.py b/lib-python/2.7/test/relimport.py
rename from lib-python/2.7.0/test/relimport.py
rename to lib-python/2.7/test/relimport.py
diff --git a/lib-python/2.7.0/test/reperf.py b/lib-python/2.7/test/reperf.py
rename from lib-python/2.7.0/test/reperf.py
rename to lib-python/2.7/test/reperf.py
diff --git a/lib-python/2.7.0/test/sample_doctest.py b/lib-python/2.7/test/sample_doctest.py
rename from lib-python/2.7.0/test/sample_doctest.py
rename to lib-python/2.7/test/sample_doctest.py
diff --git a/lib-python/2.7.0/test/script_helper.py b/lib-python/2.7/test/script_helper.py
rename from lib-python/2.7.0/test/script_helper.py
rename to lib-python/2.7/test/script_helper.py
--- a/lib-python/2.7.0/test/script_helper.py
+++ b/lib-python/2.7/test/script_helper.py
@@ -12,6 +12,45 @@
import zipfile
# Executing the interpreter in a subprocess
+def _assert_python(expected_success, *args, **env_vars):
+ cmd_line = [sys.executable]
+ if not env_vars:
+ cmd_line.append('-E')
+ cmd_line.extend(args)
+ # Need to preserve the original environment, for in-place testing of
+ # shared library builds.
+ env = os.environ.copy()
+ env.update(env_vars)
+ p = subprocess.Popen(cmd_line, stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE,
+ env=env)
+ try:
+ out, err = p.communicate()
+ finally:
+ subprocess._cleanup()
+ p.stdout.close()
+ p.stderr.close()
+ rc = p.returncode
+ if (rc and expected_success) or (not rc and not expected_success):
+ raise AssertionError(
+ "Process return code is %d, "
+ "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
+ return rc, out, err
+
+def assert_python_ok(*args, **env_vars):
+ """
+ Assert that running the interpreter with `args` and optional environment
+ variables `env_vars` is ok and return a (return code, stdout, stderr) tuple.
+ """
+ return _assert_python(True, *args, **env_vars)
+
+def assert_python_failure(*args, **env_vars):
+ """
+ Assert that running the interpreter with `args` and optional environment
+ variables `env_vars` fails and return a (return code, stdout, stderr) tuple.
+ """
+ return _assert_python(False, *args, **env_vars)
+
def python_exit_code(*args):
cmd_line = [sys.executable, '-E']
cmd_line.extend(args)
diff --git a/lib-python/2.7.0/test/seq_tests.py b/lib-python/2.7/test/seq_tests.py
rename from lib-python/2.7.0/test/seq_tests.py
rename to lib-python/2.7/test/seq_tests.py
--- a/lib-python/2.7.0/test/seq_tests.py
+++ b/lib-python/2.7/test/seq_tests.py
@@ -131,8 +131,8 @@
self.assertRaises(ZeroDivisionError, self.type2test, IterGenExc(s))
def test_truth(self):
- self.assert_(not self.type2test())
- self.assert_(self.type2test([42]))
+ self.assertFalse(self.type2test())
+ self.assertTrue(self.type2test([42]))
def test_getitem(self):
u = self.type2test([0, 1, 2, 3, 4])
@@ -270,7 +270,7 @@
pass
u3 = subclass([0, 1])
self.assertEqual(u3, u3*1)
- self.assert_(u3 is not u3*1)
+ self.assertIsNot(u3, u3*1)
def test_iadd(self):
u = self.type2test([0, 1])
diff --git a/lib-python/2.7.0/test/sgml_input.html b/lib-python/2.7/test/sgml_input.html
rename from lib-python/2.7.0/test/sgml_input.html
rename to lib-python/2.7/test/sgml_input.html
diff --git a/lib-python/2.7.0/test/sha256.pem b/lib-python/2.7/test/sha256.pem
rename from lib-python/2.7.0/test/sha256.pem
rename to lib-python/2.7/test/sha256.pem
diff --git a/lib-python/2.7.0/test/sortperf.py b/lib-python/2.7/test/sortperf.py
rename from lib-python/2.7.0/test/sortperf.py
rename to lib-python/2.7/test/sortperf.py
diff --git a/lib-python/2.7.0/test/ssl_cert.pem b/lib-python/2.7/test/ssl_cert.pem
rename from lib-python/2.7.0/test/ssl_cert.pem
rename to lib-python/2.7/test/ssl_cert.pem
diff --git a/lib-python/2.7.0/test/ssl_key.pem b/lib-python/2.7/test/ssl_key.pem
rename from lib-python/2.7.0/test/ssl_key.pem
rename to lib-python/2.7/test/ssl_key.pem
diff --git a/lib-python/2.7.0/test/string_tests.py b/lib-python/2.7/test/string_tests.py
rename from lib-python/2.7.0/test/string_tests.py
rename to lib-python/2.7/test/string_tests.py
--- a/lib-python/2.7.0/test/string_tests.py
+++ b/lib-python/2.7/test/string_tests.py
@@ -62,7 +62,7 @@
pass
object = subtype(object)
realresult = getattr(object, methodname)(*args)
- self.assert_(object is not realresult)
+ self.assertTrue(object is not realresult)
# check that object.method(*args) raises exc
def checkraises(self, exc, object, methodname, *args):
@@ -1243,34 +1243,34 @@
pass
s1 = subclass("abcd")
s2 = t().join([s1])
- self.assert_(s1 is not s2)
- self.assert_(type(s2) is t)
+ self.assertTrue(s1 is not s2)
+ self.assertTrue(type(s2) is t)
s1 = t("abcd")
s2 = t().join([s1])
- self.assert_(s1 is s2)
+ self.assertTrue(s1 is s2)
# Should also test mixed-type join.
if t is unicode:
s1 = subclass("abcd")
s2 = "".join([s1])
- self.assert_(s1 is not s2)
- self.assert_(type(s2) is t)
+ self.assertTrue(s1 is not s2)
+ self.assertTrue(type(s2) is t)
s1 = t("abcd")
s2 = "".join([s1])
- self.assert_(s1 is s2)
+ self.assertTrue(s1 is s2)
elif t is str:
s1 = subclass("abcd")
s2 = u"".join([s1])
- self.assert_(s1 is not s2)
- self.assert_(type(s2) is unicode) # promotes!
+ self.assertTrue(s1 is not s2)
+ self.assertTrue(type(s2) is unicode) # promotes!
s1 = t("abcd")
s2 = u"".join([s1])
- self.assert_(s1 is not s2)
- self.assert_(type(s2) is unicode) # promotes!
+ self.assertTrue(s1 is not s2)
+ self.assertTrue(type(s2) is unicode) # promotes!
else:
self.fail("unexpected type for MixinStrUnicodeTest %r" % t)
diff --git a/lib-python/2.7.0/test/svn_python_org_https_cert.pem b/lib-python/2.7/test/svn_python_org_https_cert.pem
rename from lib-python/2.7.0/test/svn_python_org_https_cert.pem
rename to lib-python/2.7/test/svn_python_org_https_cert.pem
diff --git a/lib-python/2.7.0/test/test_MimeWriter.py b/lib-python/2.7/test/test_MimeWriter.py
rename from lib-python/2.7.0/test/test_MimeWriter.py
rename to lib-python/2.7/test/test_MimeWriter.py
diff --git a/lib-python/2.7.0/test/test_SimpleHTTPServer.py b/lib-python/2.7/test/test_SimpleHTTPServer.py
rename from lib-python/2.7.0/test/test_SimpleHTTPServer.py
rename to lib-python/2.7/test/test_SimpleHTTPServer.py
--- a/lib-python/2.7.0/test/test_SimpleHTTPServer.py
+++ b/lib-python/2.7/test/test_SimpleHTTPServer.py
@@ -21,17 +21,17 @@
def test_queryArguments (self):
path = self.handler.translate_path ('/filename')
- self.assertEquals (path, self.translated)
+ self.assertEqual (path, self.translated)
path = self.handler.translate_path ('/filename?foo=bar')
- self.assertEquals (path, self.translated)
+ self.assertEqual (path, self.translated)
path = self.handler.translate_path ('/filename?a=b&spam=eggs#zot')
- self.assertEquals (path, self.translated)
+ self.assertEqual (path, self.translated)
def test_startWithDoubleSlash (self):
path = self.handler.translate_path ('//filename')
- self.assertEquals (path, self.translated)
+ self.assertEqual (path, self.translated)
path = self.handler.translate_path ('//filename?foo=bar')
- self.assertEquals (path, self.translated)
+ self.assertEqual (path, self.translated)
def test_main():
diff --git a/lib-python/2.7.0/test/test_StringIO.py b/lib-python/2.7/test/test_StringIO.py
rename from lib-python/2.7.0/test/test_StringIO.py
rename to lib-python/2.7/test/test_StringIO.py
diff --git a/lib-python/2.7.0/test/test___all__.py b/lib-python/2.7/test/test___all__.py
rename from lib-python/2.7.0/test/test___all__.py
rename to lib-python/2.7/test/test___all__.py
diff --git a/lib-python/2.7.0/test/test___future__.py b/lib-python/2.7/test/test___future__.py
rename from lib-python/2.7.0/test/test___future__.py
rename to lib-python/2.7/test/test___future__.py
diff --git a/lib-python/2.7.0/test/test__locale.py b/lib-python/2.7/test/test__locale.py
rename from lib-python/2.7.0/test/test__locale.py
rename to lib-python/2.7/test/test__locale.py
--- a/lib-python/2.7.0/test/test__locale.py
+++ b/lib-python/2.7/test/test__locale.py
@@ -59,7 +59,7 @@
known_value = known_numerics.get(used_locale,
('', ''))[data_type == 'thousands_sep']
if known_value and calc_value:
- self.assertEquals(calc_value, known_value,
+ self.assertEqual(calc_value, known_value,
self.lc_numeric_err_msg % (
calc_value, known_value,
calc_type, data_type, set_locale,
@@ -103,7 +103,7 @@
set_locale = setlocale(LC_NUMERIC)
except Error:
set_locale = "<not able to determine>"
- self.assertEquals(nl_radixchar, li_radixchar,
+ self.assertEqual(nl_radixchar, li_radixchar,
"%s (nl_langinfo) != %s (localeconv) "
"(set to %s, using %s)" % (
nl_radixchar, li_radixchar,
@@ -122,9 +122,9 @@
if loc == 'eu_ES' and localeconv()['decimal_point'] == "' ":
continue
- self.assertEquals(int(eval('3.14') * 100), 314,
+ self.assertEqual(int(eval('3.14') * 100), 314,
"using eval('3.14') failed for %s" % loc)
- self.assertEquals(int(float('3.14') * 100), 314,
+ self.assertEqual(int(float('3.14') * 100), 314,
"using float('3.14') failed for %s" % loc)
if localeconv()['decimal_point'] != '.':
self.assertRaises(ValueError, float,
diff --git a/lib-python/2.7.0/test/test_abc.py b/lib-python/2.7/test/test_abc.py
rename from lib-python/2.7.0/test/test_abc.py
rename to lib-python/2.7/test/test_abc.py
diff --git a/lib-python/2.7.0/test/test_abstract_numbers.py b/lib-python/2.7/test/test_abstract_numbers.py
rename from lib-python/2.7.0/test/test_abstract_numbers.py
rename to lib-python/2.7/test/test_abstract_numbers.py
diff --git a/lib-python/2.7.0/test/test_aepack.py b/lib-python/2.7/test/test_aepack.py
rename from lib-python/2.7.0/test/test_aepack.py
rename to lib-python/2.7/test/test_aepack.py
diff --git a/lib-python/2.7.0/test/test_aifc.py b/lib-python/2.7/test/test_aifc.py
rename from lib-python/2.7.0/test/test_aifc.py
rename to lib-python/2.7/test/test_aifc.py
diff --git a/lib-python/2.7.0/test/test_al.py b/lib-python/2.7/test/test_al.py
rename from lib-python/2.7.0/test/test_al.py
rename to lib-python/2.7/test/test_al.py
diff --git a/lib-python/2.7.0/test/test_anydbm.py b/lib-python/2.7/test/test_anydbm.py
rename from lib-python/2.7.0/test/test_anydbm.py
rename to lib-python/2.7/test/test_anydbm.py
diff --git a/lib-python/2.7.0/test/test_applesingle.py b/lib-python/2.7/test/test_applesingle.py
rename from lib-python/2.7.0/test/test_applesingle.py
rename to lib-python/2.7/test/test_applesingle.py
diff --git a/lib-python/2.7.0/test/test_argparse.py b/lib-python/2.7/test/test_argparse.py
rename from lib-python/2.7.0/test/test_argparse.py
rename to lib-python/2.7/test/test_argparse.py
--- a/lib-python/2.7.0/test/test_argparse.py
+++ b/lib-python/2.7/test/test_argparse.py
@@ -2709,18 +2709,18 @@
def test_empty(self):
ns = argparse.Namespace()
- self.assertEquals('' in ns, False)
- self.assertEquals('' not in ns, True)
- self.assertEquals('x' in ns, False)
+ self.assertEqual('' in ns, False)
+ self.assertEqual('' not in ns, True)
+ self.assertEqual('x' in ns, False)
def test_non_empty(self):
ns = argparse.Namespace(x=1, y=2)
- self.assertEquals('x' in ns, True)
- self.assertEquals('x' not in ns, False)
- self.assertEquals('y' in ns, True)
- self.assertEquals('' in ns, False)
- self.assertEquals('xx' in ns, False)
- self.assertEquals('z' in ns, False)
+ self.assertEqual('x' in ns, True)
+ self.assertEqual('x' not in ns, False)
+ self.assertEqual('y' in ns, True)
+ self.assertEqual('' in ns, False)
+ self.assertEqual('xx' in ns, False)
+ self.assertEqual('z' in ns, False)
# =====================
# Help formatting tests
diff --git a/lib-python/2.7.0/test/test_array.py b/lib-python/2.7/test/test_array.py
rename from lib-python/2.7.0/test/test_array.py
rename to lib-python/2.7/test/test_array.py
--- a/lib-python/2.7.0/test/test_array.py
+++ b/lib-python/2.7/test/test_array.py
@@ -628,11 +628,11 @@
data.reverse()
L[start:stop:step] = data
a[start:stop:step] = array.array(self.typecode, data)
- self.assertEquals(a, array.array(self.typecode, L))
+ self.assertEqual(a, array.array(self.typecode, L))
del L[start:stop:step]
del a[start:stop:step]
- self.assertEquals(a, array.array(self.typecode, L))
+ self.assertEqual(a, array.array(self.typecode, L))
def test_index(self):
example = 2*self.example
diff --git a/lib-python/2.7.0/test/test_ascii_formatd.py b/lib-python/2.7/test/test_ascii_formatd.py
rename from lib-python/2.7.0/test/test_ascii_formatd.py
rename to lib-python/2.7/test/test_ascii_formatd.py
diff --git a/lib-python/2.7.0/test/test_ast.py b/lib-python/2.7/test/test_ast.py
rename from lib-python/2.7.0/test/test_ast.py
rename to lib-python/2.7/test/test_ast.py
--- a/lib-python/2.7.0/test/test_ast.py
+++ b/lib-python/2.7/test/test_ast.py
@@ -147,7 +147,7 @@
(eval_tests, eval_results, "eval")):
for i, o in itertools.izip(input, output):
ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
- self.assertEquals(to_tuple(ast_tree), o)
+ self.assertEqual(to_tuple(ast_tree), o)
self._assertTrueorder(ast_tree, (0, 0))
def test_slice(self):
@@ -171,20 +171,20 @@
def test_nodeclasses(self):
x = ast.BinOp(1, 2, 3, lineno=0)
- self.assertEquals(x.left, 1)
- self.assertEquals(x.op, 2)
- self.assertEquals(x.right, 3)
- self.assertEquals(x.lineno, 0)
+ self.assertEqual(x.left, 1)
+ self.assertEqual(x.op, 2)
+ self.assertEqual(x.right, 3)
+ self.assertEqual(x.lineno, 0)
# node raises exception when not given enough arguments
self.assertRaises(TypeError, ast.BinOp, 1, 2)
# can set attributes through kwargs too
x = ast.BinOp(left=1, op=2, right=3, lineno=0)
- self.assertEquals(x.left, 1)
- self.assertEquals(x.op, 2)
- self.assertEquals(x.right, 3)
- self.assertEquals(x.lineno, 0)
+ self.assertEqual(x.left, 1)
+ self.assertEqual(x.op, 2)
+ self.assertEqual(x.right, 3)
+ self.assertEqual(x.lineno, 0)
# this used to fail because Sub._fields was None
x = ast.Sub()
@@ -202,7 +202,7 @@
for protocol in protocols:
for ast in (compile(i, "?", "exec", 0x400) for i in exec_tests):
ast2 = mod.loads(mod.dumps(ast, protocol))
- self.assertEquals(to_tuple(ast2), to_tuple(ast))
+ self.assertEqual(to_tuple(ast2), to_tuple(ast))
class ASTHelpers_Test(unittest.TestCase):
diff --git a/lib-python/2.7.0/test/test_asynchat.py b/lib-python/2.7/test/test_asynchat.py
rename from lib-python/2.7.0/test/test_asynchat.py
rename to lib-python/2.7/test/test_asynchat.py
diff --git a/lib-python/2.7.0/test/test_asyncore.py b/lib-python/2.7/test/test_asyncore.py
rename from lib-python/2.7.0/test/test_asyncore.py
rename to lib-python/2.7/test/test_asyncore.py
diff --git a/lib-python/2.7.0/test/test_atexit.py b/lib-python/2.7/test/test_atexit.py
rename from lib-python/2.7.0/test/test_atexit.py
rename to lib-python/2.7/test/test_atexit.py
diff --git a/lib-python/2.7.0/test/test_audioop.py b/lib-python/2.7/test/test_audioop.py
rename from lib-python/2.7.0/test/test_audioop.py
rename to lib-python/2.7/test/test_audioop.py
diff --git a/lib-python/2.7.0/test/test_augassign.py b/lib-python/2.7/test/test_augassign.py
rename from lib-python/2.7.0/test/test_augassign.py
rename to lib-python/2.7/test/test_augassign.py
--- a/lib-python/2.7.0/test/test_augassign.py
+++ b/lib-python/2.7/test/test_augassign.py
@@ -19,10 +19,10 @@
x /= 2
if 1/2 == 0:
# classic division
- self.assertEquals(x, 3)
+ self.assertEqual(x, 3)
else:
# new-style division (with -Qnew)
- self.assertEquals(x, 3.0)
+ self.assertEqual(x, 3.0)
def test_with_unpacking(self):
self.assertRaises(SyntaxError, compile, "x, b += 3", "<test>", "exec")
@@ -40,9 +40,9 @@
x[0] ^= 1
x[0] /= 2
if 1/2 == 0:
- self.assertEquals(x[0], 3)
+ self.assertEqual(x[0], 3)
else:
- self.assertEquals(x[0], 3.0)
+ self.assertEqual(x[0], 3.0)
def testInDict(self):
x = {0: 2}
@@ -57,23 +57,23 @@
x[0] ^= 1
x[0] /= 2
if 1/2 == 0:
- self.assertEquals(x[0], 3)
+ self.assertEqual(x[0], 3)
else:
- self.assertEquals(x[0], 3.0)
+ self.assertEqual(x[0], 3.0)
def testSequences(self):
x = [1,2]
x += [3,4]
x *= 2
- self.assertEquals(x, [1, 2, 3, 4, 1, 2, 3, 4])
+ self.assertEqual(x, [1, 2, 3, 4, 1, 2, 3, 4])
x = [1, 2, 3]
y = x
x[1:2] *= 2
y[1:2] += [1]
- self.assertEquals(x, [1, 2, 1, 2, 3])
+ self.assertEqual(x, [1, 2, 1, 2, 3])
self.assertTrue(x is y)
def testCustomMethods1(self):
@@ -101,14 +101,14 @@
self.assertIsInstance(x, aug_test)
self.assertTrue(y is not x)
- self.assertEquals(x.val, 11)
+ self.assertEqual(x.val, 11)
x = aug_test2(2)
y = x
x += 10
self.assertTrue(y is x)
- self.assertEquals(x.val, 12)
+ self.assertEqual(x.val, 12)
x = aug_test3(3)
y = x
@@ -116,7 +116,7 @@
self.assertIsInstance(x, aug_test3)
self.assertTrue(y is not x)
- self.assertEquals(x.val, 13)
+ self.assertEqual(x.val, 13)
def testCustomMethods2(test_self):
@@ -284,7 +284,7 @@
1 << x
x <<= 1
- test_self.assertEquals(output, '''\
+ test_self.assertEqual(output, '''\
__add__ called
__radd__ called
__iadd__ called
diff --git a/lib-python/2.7.0/test/test_base64.py b/lib-python/2.7/test/test_base64.py
rename from lib-python/2.7.0/test/test_base64.py
rename to lib-python/2.7/test/test_base64.py
diff --git a/lib-python/2.7.0/test/test_bastion.py b/lib-python/2.7/test/test_bastion.py
rename from lib-python/2.7.0/test/test_bastion.py
rename to lib-python/2.7/test/test_bastion.py
diff --git a/lib-python/2.7.0/test/test_bigaddrspace.py b/lib-python/2.7/test/test_bigaddrspace.py
rename from lib-python/2.7.0/test/test_bigaddrspace.py
rename to lib-python/2.7/test/test_bigaddrspace.py
--- a/lib-python/2.7.0/test/test_bigaddrspace.py
+++ b/lib-python/2.7/test/test_bigaddrspace.py
@@ -28,7 +28,7 @@
pass
else:
self.fail("should have raised OverflowError")
- self.assertEquals(len(x), MAX_Py_ssize_t)
+ self.assertEqual(len(x), MAX_Py_ssize_t)
### the following test is pending a patch
# (http://mail.python.org/pipermail/python-dev/2006-July/067774.html)
diff --git a/lib-python/2.7.0/test/test_bigmem.py b/lib-python/2.7/test/test_bigmem.py
rename from lib-python/2.7.0/test/test_bigmem.py
rename to lib-python/2.7/test/test_bigmem.py
--- a/lib-python/2.7.0/test/test_bigmem.py
+++ b/lib-python/2.7/test/test_bigmem.py
@@ -13,7 +13,7 @@
# doesn't release the old 's' (if it exists) until well after its new
# value has been created. Use 'del s' before the create_largestring call.
#
-# - Do *not* compare large objects using assertEquals or similar. It's a
+# - Do *not* compare large objects using assertEqual or similar. It's a
# lengty operation and the errormessage will be utterly useless due to
# its size. To make sure whether a result has the right contents, better
# to use the strip or count methods, or compare meaningful slices.
@@ -39,20 +39,20 @@
SUBSTR = ' abc def ghi'
s = '-' * size + SUBSTR
caps = s.capitalize()
- self.assertEquals(caps[-len(SUBSTR):],
+ self.assertEqual(caps[-len(SUBSTR):],
SUBSTR.capitalize())
- self.assertEquals(caps.lstrip('-'), SUBSTR)
+ self.assertEqual(caps.lstrip('-'), SUBSTR)
@bigmemtest(minsize=_2G + 10, memuse=1)
def test_center(self, size):
SUBSTR = ' abc def ghi'
s = SUBSTR.center(size)
- self.assertEquals(len(s), size)
+ self.assertEqual(len(s), size)
lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2
if len(s) % 2:
lpadsize += 1
- self.assertEquals(s[lpadsize:-rpadsize], SUBSTR)
- self.assertEquals(s.strip(), SUBSTR.strip())
+ self.assertEqual(s[lpadsize:-rpadsize], SUBSTR)
+ self.assertEqual(s.strip(), SUBSTR.strip())
@precisionbigmemtest(size=_2G - 1, memuse=1)
def test_center_unicode(self, size):
@@ -62,36 +62,36 @@
except OverflowError:
pass # acceptable on 32-bit
else:
- self.assertEquals(len(s), size)
+ self.assertEqual(len(s), size)
lpadsize = rpadsize = (len(s) - len(SUBSTR)) // 2
if len(s) % 2:
lpadsize += 1
- self.assertEquals(s[lpadsize:-rpadsize], SUBSTR)
- self.assertEquals(s.strip(), SUBSTR.strip())
+ self.assertEqual(s[lpadsize:-rpadsize], SUBSTR)
+ self.assertEqual(s.strip(), SUBSTR.strip())
del s
@bigmemtest(minsize=_2G, memuse=2)
def test_count(self, size):
SUBSTR = ' abc def ghi'
s = '.' * size + SUBSTR
- self.assertEquals(s.count('.'), size)
+ self.assertEqual(s.count('.'), size)
s += '.'
- self.assertEquals(s.count('.'), size + 1)
- self.assertEquals(s.count(' '), 3)
- self.assertEquals(s.count('i'), 1)
- self.assertEquals(s.count('j'), 0)
+ self.assertEqual(s.count('.'), size + 1)
+ self.assertEqual(s.count(' '), 3)
+ self.assertEqual(s.count('i'), 1)
+ self.assertEqual(s.count('j'), 0)
@bigmemtest(minsize=_2G + 2, memuse=3)
def test_decode(self, size):
s = '.' * size
- self.assertEquals(len(s.decode('utf-8')), size)
+ self.assertEqual(len(s.decode('utf-8')), size)
def basic_encode_test(self, size, enc, c=u'.', expectedsize=None):
if expectedsize is None:
expectedsize = size
s = c * size
- self.assertEquals(len(s.encode(enc)), expectedsize)
+ self.assertEqual(len(s.encode(enc)), expectedsize)
@bigmemtest(minsize=_2G + 2, memuse=3)
def test_encode(self, size):
@@ -147,43 +147,43 @@
def test_expandtabs(self, size):
s = '-' * size
tabsize = 8
- self.assertEquals(s.expandtabs(), s)
+ self.assertEqual(s.expandtabs(), s)
del s
slen, remainder = divmod(size, tabsize)
s = ' \t' * slen
s = s.expandtabs(tabsize)
- self.assertEquals(len(s), size - remainder)
- self.assertEquals(len(s.strip(' ')), 0)
+ self.assertEqual(len(s), size - remainder)
+ self.assertEqual(len(s.strip(' ')), 0)
@bigmemtest(minsize=_2G, memuse=2)
def test_find(self, size):
SUBSTR = ' abc def ghi'
sublen = len(SUBSTR)
s = ''.join([SUBSTR, '-' * size, SUBSTR])
- self.assertEquals(s.find(' '), 0)
- self.assertEquals(s.find(SUBSTR), 0)
- self.assertEquals(s.find(' ', sublen), sublen + size)
- self.assertEquals(s.find(SUBSTR, len(SUBSTR)), sublen + size)
- self.assertEquals(s.find('i'), SUBSTR.find('i'))
- self.assertEquals(s.find('i', sublen),
+ self.assertEqual(s.find(' '), 0)
+ self.assertEqual(s.find(SUBSTR), 0)
+ self.assertEqual(s.find(' ', sublen), sublen + size)
+ self.assertEqual(s.find(SUBSTR, len(SUBSTR)), sublen + size)
+ self.assertEqual(s.find('i'), SUBSTR.find('i'))
+ self.assertEqual(s.find('i', sublen),
sublen + size + SUBSTR.find('i'))
- self.assertEquals(s.find('i', size),
+ self.assertEqual(s.find('i', size),
sublen + size + SUBSTR.find('i'))
- self.assertEquals(s.find('j'), -1)
+ self.assertEqual(s.find('j'), -1)
@bigmemtest(minsize=_2G, memuse=2)
def test_index(self, size):
SUBSTR = ' abc def ghi'
sublen = len(SUBSTR)
s = ''.join([SUBSTR, '-' * size, SUBSTR])
- self.assertEquals(s.index(' '), 0)
- self.assertEquals(s.index(SUBSTR), 0)
- self.assertEquals(s.index(' ', sublen), sublen + size)
- self.assertEquals(s.index(SUBSTR, sublen), sublen + size)
- self.assertEquals(s.index('i'), SUBSTR.index('i'))
- self.assertEquals(s.index('i', sublen),
+ self.assertEqual(s.index(' '), 0)
+ self.assertEqual(s.index(SUBSTR), 0)
+ self.assertEqual(s.index(' ', sublen), sublen + size)
+ self.assertEqual(s.index(SUBSTR, sublen), sublen + size)
+ self.assertEqual(s.index('i'), SUBSTR.index('i'))
+ self.assertEqual(s.index('i', sublen),
sublen + size + SUBSTR.index('i'))
- self.assertEquals(s.index('i', size),
+ self.assertEqual(s.index('i', size),
sublen + size + SUBSTR.index('i'))
self.assertRaises(ValueError, s.index, 'j')
@@ -252,8 +252,8 @@
def test_join(self, size):
s = 'A' * size
x = s.join(['aaaaa', 'bbbbb'])
- self.assertEquals(x.count('a'), 5)
- self.assertEquals(x.count('b'), 5)
+ self.assertEqual(x.count('a'), 5)
+ self.assertEqual(x.count('b'), 5)
self.assertTrue(x.startswith('aaaaaA'))
self.assertTrue(x.endswith('Abbbbb'))
@@ -262,25 +262,25 @@
SUBSTR = ' abc def ghi'
s = SUBSTR.ljust(size)
self.assertTrue(s.startswith(SUBSTR + ' '))
- self.assertEquals(len(s), size)
- self.assertEquals(s.strip(), SUBSTR.strip())
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.strip(), SUBSTR.strip())
@bigmemtest(minsize=_2G + 10, memuse=2)
def test_lower(self, size):
s = 'A' * size
s = s.lower()
- self.assertEquals(len(s), size)
- self.assertEquals(s.count('a'), size)
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.count('a'), size)
@bigmemtest(minsize=_2G + 10, memuse=1)
def test_lstrip(self, size):
SUBSTR = 'abc def ghi'
s = SUBSTR.rjust(size)
- self.assertEquals(len(s), size)
- self.assertEquals(s.lstrip(), SUBSTR.lstrip())
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.lstrip(), SUBSTR.lstrip())
del s
s = SUBSTR.ljust(size)
- self.assertEquals(len(s), size)
+ self.assertEqual(len(s), size)
stripped = s.lstrip()
self.assertTrue(stripped is s)
@@ -289,44 +289,44 @@
replacement = 'a'
s = ' ' * size
s = s.replace(' ', replacement)
- self.assertEquals(len(s), size)
- self.assertEquals(s.count(replacement), size)
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.count(replacement), size)
s = s.replace(replacement, ' ', size - 4)
- self.assertEquals(len(s), size)
- self.assertEquals(s.count(replacement), 4)
- self.assertEquals(s[-10:], ' aaaa')
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.count(replacement), 4)
+ self.assertEqual(s[-10:], ' aaaa')
@bigmemtest(minsize=_2G, memuse=2)
def test_rfind(self, size):
SUBSTR = ' abc def ghi'
sublen = len(SUBSTR)
s = ''.join([SUBSTR, '-' * size, SUBSTR])
- self.assertEquals(s.rfind(' '), sublen + size + SUBSTR.rfind(' '))
- self.assertEquals(s.rfind(SUBSTR), sublen + size)
- self.assertEquals(s.rfind(' ', 0, size), SUBSTR.rfind(' '))
- self.assertEquals(s.rfind(SUBSTR, 0, sublen + size), 0)
- self.assertEquals(s.rfind('i'), sublen + size + SUBSTR.rfind('i'))
- self.assertEquals(s.rfind('i', 0, sublen), SUBSTR.rfind('i'))
- self.assertEquals(s.rfind('i', 0, sublen + size),
- SUBSTR.rfind('i'))
- self.assertEquals(s.rfind('j'), -1)
+ self.assertEqual(s.rfind(' '), sublen + size + SUBSTR.rfind(' '))
+ self.assertEqual(s.rfind(SUBSTR), sublen + size)
+ self.assertEqual(s.rfind(' ', 0, size), SUBSTR.rfind(' '))
+ self.assertEqual(s.rfind(SUBSTR, 0, sublen + size), 0)
+ self.assertEqual(s.rfind('i'), sublen + size + SUBSTR.rfind('i'))
+ self.assertEqual(s.rfind('i', 0, sublen), SUBSTR.rfind('i'))
+ self.assertEqual(s.rfind('i', 0, sublen + size),
+ SUBSTR.rfind('i'))
+ self.assertEqual(s.rfind('j'), -1)
@bigmemtest(minsize=_2G, memuse=2)
def test_rindex(self, size):
SUBSTR = ' abc def ghi'
sublen = len(SUBSTR)
s = ''.join([SUBSTR, '-' * size, SUBSTR])
- self.assertEquals(s.rindex(' '),
+ self.assertEqual(s.rindex(' '),
sublen + size + SUBSTR.rindex(' '))
- self.assertEquals(s.rindex(SUBSTR), sublen + size)
- self.assertEquals(s.rindex(' ', 0, sublen + size - 1),
- SUBSTR.rindex(' '))
- self.assertEquals(s.rindex(SUBSTR, 0, sublen + size), 0)
- self.assertEquals(s.rindex('i'),
- sublen + size + SUBSTR.rindex('i'))
- self.assertEquals(s.rindex('i', 0, sublen), SUBSTR.rindex('i'))
- self.assertEquals(s.rindex('i', 0, sublen + size),
- SUBSTR.rindex('i'))
+ self.assertEqual(s.rindex(SUBSTR), sublen + size)
+ self.assertEqual(s.rindex(' ', 0, sublen + size - 1),
+ SUBSTR.rindex(' '))
+ self.assertEqual(s.rindex(SUBSTR, 0, sublen + size), 0)
+ self.assertEqual(s.rindex('i'),
+ sublen + size + SUBSTR.rindex('i'))
+ self.assertEqual(s.rindex('i', 0, sublen), SUBSTR.rindex('i'))
+ self.assertEqual(s.rindex('i', 0, sublen + size),
+ SUBSTR.rindex('i'))
self.assertRaises(ValueError, s.rindex, 'j')
@bigmemtest(minsize=_2G + 10, memuse=1)
@@ -334,18 +334,18 @@
SUBSTR = ' abc def ghi'
s = SUBSTR.ljust(size)
self.assertTrue(s.startswith(SUBSTR + ' '))
- self.assertEquals(len(s), size)
- self.assertEquals(s.strip(), SUBSTR.strip())
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.strip(), SUBSTR.strip())
@bigmemtest(minsize=_2G + 10, memuse=1)
def test_rstrip(self, size):
SUBSTR = ' abc def ghi'
s = SUBSTR.ljust(size)
- self.assertEquals(len(s), size)
- self.assertEquals(s.rstrip(), SUBSTR.rstrip())
+ self.assertEqual(len(s), size)
+ self.assertEqual(s.rstrip(), SUBSTR.rstrip())
del s
s = SUBSTR.rjust(size)
- self.assertEquals(len(s), size)
+ self.assertEqual(len(s), size)
stripped = s.rstrip()
self.assertTrue(stripped is s)
@@ -360,12 +360,12 @@
SUBSTR = 'a' + ' ' * chunksize
s = SUBSTR * chunksize
l = s.split()
- self.assertEquals(len(l), chunksize)
- self.assertEquals(set(l), set(['a']))
+ self.assertEqual(len(l), chunksize)
+ self.assertEqual(set(l), set(['a']))
del l
l = s.split('a')
- self.assertEquals(len(l), chunksize + 1)
- self.assertEquals(set(l), set(['', ' ' * chunksize]))
+ self.assertEqual(len(l), chunksize + 1)
+ self.assertEqual(set(l), set(['', ' ' * chunksize]))
# Allocates a string of twice size (and briefly two) and a list of
# size. Because of internal affairs, the s.split() call produces a
@@ -377,12 +377,12 @@
def test_split_large(self, size):
s = ' a' * size + ' '
l = s.split()
- self.assertEquals(len(l), size)
- self.assertEquals(set(l), set(['a']))
+ self.assertEqual(len(l), size)
+ self.assertEqual(set(l), set(['a']))
del l
l = s.split('a')
- self.assertEquals(len(l), size + 1)
- self.assertEquals(set(l), set([' ']))
+ self.assertEqual(len(l), size + 1)
+ self.assertEqual(set(l), set([' ']))
More information about the pypy-commit
mailing list