scripts/get_users_emails.py
def write_to_file(self, file_path=''):
        """
        Writes the user emails to file.
        """
        with open(file_path, 'w+') as out:
            out.write('user, email\n')
            sorted_names = sorted(self.logins_lower)#sort based on lowercase
            for login in sorted_names:
                out.write(self.logins_lower[login] + ','
                + self.emails[self.logins_lower[login]] + '\n')
        out.close()
def write_to_file(self, file_path=''):
        with open(file_path, 'w+') as out:
            out.write('user, email\n')
            sorted_names = sorted(self.logins_lower)#sort based on lowercase
            for login in sorted_names:
                out.write(self.logins_lower[login] + ','
                + self.emails[self.logins_lower[login]] + '\n')
        out.close()
def write_to_file ( self , file_path = '' ) : with open ( file_path , 'w+' ) as out : out . write ( 'user, email\n' ) sorted_names = sorted ( self . logins_lower ) #sort based on lowercase for login in sorted_names : out . write ( self . logins_lower [ login ] + ',' + self . emails [ self . logins_lower [ login ] ] + '\n' ) out . close ( )
Writes the user emails to file.
Writes the user emails to file .