code: def _normalize_roots(file_roots):
      '''
      Normalize file or pillar roots.
      '''
      for saltenv, dirs in six.iteritems(file_roots):
          normalized_saltenv = six.text_type(saltenv)
          if normalized_saltenv != saltenv:
              file_roots[normalized_saltenv] = file_roots.pop(saltenv)
          if not isinstance(dirs, (list, tuple)):
              file_roots[normalized_saltenv] = []
          file_roots[normalized_saltenv] = \
                  _expand_glob_path(file_roots[normalized_saltenv])
      return file_rootf _normalize_roots(file_roots):
      '''
      Normalize file or pillar roots.
      '''
      for saltenv, dirs in six.iteritems(file_roots):
          normalized_saltenv = six.text_type(saltenv)
          if normalized_saltenv != saltenv:
              file_roots[normalized_saltenv] = file_roots.pop(saltenv)
          if not isinstance(dirs, (list, tuple)):
              file_roots[normalized_saltenv] = []
          file_roots[normalized_saltenv] = \
                  _expand_glob_path(file_roots[normalized_saltenv])
      return file_roots
docs: Normalize file or pillar roots.