Commit 5861e044 authored by Vinay Sajip's avatar Vinay Sajip

Fixed some bugs, tests now also all pass on 2.7 and 3.2.

--HG--
branch : distribute
extra : rebase_source : 25c6042a716c49e3576605c3cf4e2878d5b85c18
parent e65d621e
...@@ -6,7 +6,7 @@ if sys.version_info[0] < 3: ...@@ -6,7 +6,7 @@ if sys.version_info[0] < 3:
basestring = basestring basestring = basestring
import __builtin__ as builtins import __builtin__ as builtins
import ConfigParser import ConfigParser
from cStringIO import StringIO from StringIO import StringIO
BytesIO = StringIO BytesIO = StringIO
execfile = execfile execfile = execfile
func_code = lambda o: o.func_code func_code = lambda o: o.func_code
......
...@@ -219,7 +219,7 @@ distribution is added to a working set. The callback is immediately invoked ...@@ -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 once for each existing distribution in the working set, and then is called
again for new distributions added thereafter:: again for new distributions added thereafter::
>>> def added(dist): print("Added", dist) >>> def added(dist): print("Added %s" % dist)
>>> ws.subscribe(added) >>> ws.subscribe(added)
Added Bar 0.9 Added Bar 0.9
>>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12") >>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment