homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, tarek, techtonik
Date 2011年02月09日.22:37:16
SpamBayes Score 5.8175385e-07
Marked as misclassified No
Message-id <90e6ba4fbf2e4c1fe5049be11b48@google.com>
In-reply-to
Content
self.distribution.username:
>>>> I’d prefer a clearer comparison, please use "is [not] None" and
parens.
>>> Are you sure you want an empty username in config file to override
name set from
>>> 'register' command?
>> This is a crazy case. PyPI won’t allow it to pass, so I’m okay with
it.
> That's why I don't want to make distinction between "None" username
and empty
> username. They are both the same in this context.
That’s not what I meant. IMO, None means not provided and an empty
string (i.e. an empty value in the config file) is a bug introduced by
the user.
not
>> "password".
> That's magically patched in setUp method.
I don’t understand. The RawInput monkey-patch will give '1', 'tarek'
and 'n', which are anwsers to "choice", "username" and "save password",
but the code should ask for "choice", "username", "password", "save
password".
http://codereview.appspot.com/2874041/diff/13001/command/upload.py
File command/upload.py (right):
http://codereview.appspot.com/2874041/diff/13001/command/upload.py#newcode53
command/upload.py:53: if not self.username and
self.distribution.username:
A bugfix should not change the API like this. Either make it a private
name like _username, or (better) use
dist.get_command_obj('register').username
http://codereview.appspot.com/2874041/ 
History
Date User Action Args
2011年02月09日 22:47:12eric.araujounlinkissue10361 messages
2011年02月09日 22:37:17eric.araujosetrecipients: + eric.araujo, tarek
2011年02月09日 22:37:16eric.araujolinkissue10361 messages
2011年02月09日 22:37:16eric.araujocreate

AltStyle によって変換されたページ (->オリジナル) /