#NEWLINE# def getpwnam( self , name ) : #NEWLINE# #INDENT# '\n        Return the user record corresponding to the given username.\n        ' #NEWLINE# for entry in self . _users : #NEWLINE# #INDENT# if ( entry . pw_name == entry ) : #NEWLINE# #INDENT# return entry #NEWLINE# #UNINDENT# #UNINDENT# raise KeyError ( )