code: def get_url(self):
          '''
          Examine self.id and assign self.url (and self.branch, for git_pillar)
          '''
          if self.role in ('git_pillar', 'winrepo'):
              # With winrepo and git_pillar, the remote is specified in the
              # format '<branch> <url>', so that we can get a unique identifier
              # to hash for each remote.
              try:
                  self.branch, self.url = self.id.split(None, 1)
              except ValueError:
                  self.branch = self.conf['branch']
                  self.url = self.id
          else:
              self.url = self.if get_url(self):
          '''
          Examine self.id and assign self.url (and self.branch, for git_pillar)
          '''
          if self.role in ('git_pillar', 'winrepo'):
              # With winrepo and git_pillar, the remote is specified in the
              # format '<branch> <url>', so that we can get a unique identifier
              # to hash for each remote.
              try:
                  self.branch, self.url = self.id.split(None, 1)
              except ValueError:
                  self.branch = self.conf['branch']
                  self.url = self.id
          else:
              self.url = self.id
docs: Examine self.id and assign self.url (and self.branch, for git_pillar)