(self, wanted_group)
return (str(hgr.gr_name), str(hgr.gr_gid), str(hgr.gr_mem))
get group information from the host /etc/group
get group information from the host /etc/group
get group information from the host / etc / group
def _get_group_from_host(self, wanted_group):
        """get group information from the host /etc/group"""
        wanted_gid = ""
        if (isinstance(wanted_group, int) or
                re.match("^\\d+$", wanted_group)):
            wanted_gid = str(wanted_group)
            wanted_group = ""
        if wanted_gid:
            try:
                hgr = grp.getgrgid(int(wanted_gid))
            except (IOError, OSError, KeyError):
                return ("", "", "")
            return (str(hgr.gr_name), str(hgr.gr_gid), str(hgr.gr_mem))

        try:
            hgr = grp.getgrnam(wanted_group)
        except (IOError, OSError, KeyError):
            return ("", "", "")
        return (str(hgr.gr_name), str(hgr.gr_gid), str(hgr.gr_mem))
def _get_group_from_host ( self , wanted_group ) : wanted_gid = "" if ( isinstance ( wanted_group , int ) or re . match ( "^\\d+$" , wanted_group ) ) : wanted_gid = str ( wanted_group ) wanted_group = "" if wanted_gid : try : hgr = grp . getgrgid ( int ( wanted_gid ) ) except ( IOError , OSError , KeyError ) : return ( "" , "" , "" ) return ( str ( hgr . gr_name ) , str ( hgr . gr_gid ) , str ( hgr . gr_mem ) ) try : hgr = grp . getgrnam ( wanted_group ) except ( IOError , OSError , KeyError ) : return ( "" , "" , "" ) return ( str ( hgr . gr_name ) , str ( hgr . gr_gid ) , str ( hgr . gr_mem ) )