old_contents: """Github Account abstraction."""
  
  from __future__ import print_function, division
  
  import re
  import requests
  from lxml import html
  
  from . import Account
  
  _URL_RE = re.compile(r'https?://(www.)?github.com/(?P<username>\w+)/?')
  
  
  class GitHubAccount(Account):
  
      def __init__(self, username=None, url=None, **_):
          if username is not None:
              self._username = username
          elif url is not None:
              match = _URL_RE.match(url)
              if match:
                  self._username = match.group('username')
              else:
                  raise ValueError('No username match.')
          else:
              raise ValueError('No usable parameters!')
  
      def expand(self, info):
          # Load their profile page.
          url = 'https://github.com/%s' % self._username
          page = requests.get(url)
          tree = html.fromstring(page.text)
  
          # Search for a website!
          for anchor in tree.xpath(r'//a[@class="url"]'):
              yield {'url': anchor.attrib['href']}
  
      @staticmethod
      def match(**options):
          return  (
              'url' in options
              and _URL_RE.match(options['url'])
          )
  
new_contents: """Github Account abstraction."""
  
  from __future__ import print_function, division
  
  import re
  import requests
  from lxml import html
  
  from . import Account
  
  _URL_RE = re.compile(r'https?://(www.)?github.com/(?P<username>\w+)/?')
  
  
  class GitHubAccount(Account):
  
      def __init__(self, username=None, url=None, **_):
          if username is not None:
              self._username = username
          elif url is not None:
              match = _URL_RE.match(url)
              if match:
                  self._username = match.group('username')
              else:
                  raise ValueError('No username match.')
          else:
              raise ValueError('No usable parameters!')
  
      def expand(self, info):
          # Load their profile page.
          url = 'https://github.com/%s' % self._username
          page = requests.get(url)
          tree = html.fromstring(page.text)
  
          # Search for a website!
          for anchor in tree.xpath(r'//a[@class="url"]'):
              yield {'url': anchor.attrib['href']}
  
      @staticmethod
      def match(**options):
          return  (
              'url' in options
              and _URL_RE.match(options['url'])
          )
  
      def __str__(self):
          return 'GitHubAccount(username=%r)' % self._username
  
subject: Add str() for GitHubAccount.