At 10:35 AM 12/20/2007 -0700, zooko wrote:

>On Dec 20, 2007, at 9:55 AM, Phillip J. Eby wrote:
>
>>At 09:34 PM 12/19/2007 -0700, zooko wrote:
>>>Folks:
>>>
>>>The setuptools page suggests that authors of revision control plugins
>>>can use "distutils.log.warn", but my version of distutils has no such
>>>name "log".
>>
>>What version of distutils is that?  Python 2.3, 2.4, and 2.5 (the
>>only supported versions at this time) all include a distutils.log
>>module.
>
>Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
>[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
>Type "help", "copyright", "credits" or "license" for more information.
> >>> import distutils
> >>> distutils.log
>Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>AttributeError: 'module' object has no attribute 'log

distutils.log isn't an object in the distutils module, it's a module 
in the distutils package.  Use "import distutils.log"  or "from 
distutils import log".

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to