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 ethan.furman
Recipients Decorater, ethan.furman
Date 2016-09-10.23:32:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473550357.57.0.392805679277.issue28072@psf.upfronthosting.co.za>
In-reply-to
Content
Empty strings are empty strings, not None.

An better way for your code example would be:

def ...():
    if url:
       ....
    else:
       raise URLError(...URL cannot be empty...)
History
Date User Action Args
2016-09-10 23:32:37ethan.furmansetrecipients: + ethan.furman, Decorater
2016-09-10 23:32:37ethan.furmansetmessageid: <1473550357.57.0.392805679277.issue28072@psf.upfronthosting.co.za>
2016-09-10 23:32:37ethan.furmanlinkissue28072 messages
2016-09-10 23:32:37ethan.furmancreate