'Remove an apt repository.
:param repo: Repository string. Example:
\'deb http://archive.ubuntu.com/ubuntu/ maverick universe\''

def remove_repo(self, repo):

    repo_file = open(self.repo_file_path, 'r')
    new_file_contents = []
    for line in repo_file:
        if (not (line == repo)):
            new_file_contents.append(line)
    repo_file.close()
    new_file_contents = '\n'.join(new_file_contents)
    repo_file.open(self.repo_file_path, 'w')
    repo_file.write(new_file_contents)
    repo_file.close()
