<s> """<STR_LIT>""" <EOL> from . base import BaseShortener <EOL> from . . exceptions import ShorteningErrorException <EOL> class Tinyurl ( BaseShortener ) : <EOL> api_url = '<STR_LIT>' <EOL> def short ( self , url ) : <EOL> response = self . _get ( self . api_url , params = dict ( url = url ) ) <EOL> if response . ok : <EOL> return response . text <EOL> raise ShorteningErrorException ( '<STR_LIT>' <EOL> '<STR_LIT>' . format ( response . content ) ) </s>
