def getpwnam(self, name):
        for entry in self._users:
            if entry.pw_name == name:
                return entry
        raise KeyError()
Return the user record corresponding to the given username.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/fakepwd.py/UserDatabase.getpwnam