code: def _priority_from_env(self, val):
          
          for part in val.split(':'):
              try:
                  rule, priority = part.split('=')
                  yield rule, int(priority)
              except ValueError:
                  continue
docs: Gets priority pairs from env.