def user_agent(self): """The current user agent.""" from werkzeug.useragents import UserAgent return UserAgent(self.environ)