

def tweet(self):
    if can_tweet():
        account = twitter.Api(username=settings.TWITTER_USERNAME, password=settings.TWITTER_PASSWORD)
        account.PostUpdate(account.as_tweet())
    else:
        raise ImproperlyConfigured('Unable to send tweet due to either missing python-twitter or required settings.')

dataset/ETHPy150Open pinax/pinax-blog/pinax/blog/models.py Post.tweet/VarMisuse@40/48 `self`->`account`