From 5861e0443331531fda2525fc4a714101968cb537 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Tue, 21 Jun 2011 09:32:50 +0100 Subject: Fixed some bugs, tests now also all pass on 2.7 and 3.2. --HG-- branch : distribute extra : rebase_source : 25c6042a716c49e3576605c3cf4e2878d5b85c18 --- setuptools/compat.py | 2 +- tests/api_tests.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setuptools/compat.py b/setuptools/compat.py index 72581866..7427c17f 100644 --- a/setuptools/compat.py +++ b/setuptools/compat.py @@ -6,7 +6,7 @@ if sys.version_info[0] < 3: basestring = basestring import __builtin__ as builtins import ConfigParser - from cStringIO import StringIO + from StringIO import StringIO BytesIO = StringIO execfile = execfile func_code = lambda o: o.func_code diff --git a/tests/api_tests.txt b/tests/api_tests.txt index c2e63b24..65443e09 100644 --- a/tests/api_tests.txt +++ b/tests/api_tests.txt @@ -219,7 +219,7 @@ distribution is added to a working set. The callback is immediately invoked once for each existing distribution in the working set, and then is called again for new distributions added thereafter:: - >>> def added(dist): print("Added", dist) + >>> def added(dist): print("Added %s" % dist) >>> ws.subscribe(added) Added Bar 0.9 >>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12") -- cgit v1.2.3