def _users(self):
        """
        Return a list of two-tuples giving links to user resources and text to
        associate with those links.
        """
        users = []
        for user in self._pwd.getpwall():
            name, passwd, uid, gid, gecos, dir, shell = user
            realname = gecos.split(',')[0]
            if not realname:
                realname = name
            if os.path.exists(os.path.join(dir, self.userDirName)):
                users.append((name, realname + ' (file)'))
            twistdsock = os.path.join(dir, self.userSocketName)
            if os.path.exists(twistdsock):
                linkName = name + '.twistd'
                users.append((linkName, realname + ' (twistd)'))
        return users

        Return a list of two-tuples giving links to user resources and text to
        associate with those links.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/distrib.py