human
Solve the following python programming problem given the following code:
def fnmatch_lines(self, lines2) : 
    'Search the text for matching lines.

        The argument is a list of lines which have to match and can
        use glob wildcards.  If they do not match an pytest.fail() is
        called.  The matches and non-matches are also printed on
        stdout.

        ' 
    def show(arg1, arg2) : 
        py.builtin.print_ (arg1, arg2, file = sys.stderr) 
lines2 = self._getlines (lines2) 
    lines1 = self.lines [:] 
    nextline = None 
    extralines = [] 
    __tracebackhide__ = True 
    for line in lines2 : 
        nomatchprinted = False 
        while lines1 : 
            nextline = lines1.pop (0) 
            if (line == nextline) : 
                show ('exact match:', repr (line)) 
                break 
else : 
                if fnmatch (nextline, line) : 
                    show ('fnmatch:', repr (line)) 
                    show ('   with:', repr (nextline)) 
                    break 
else : 
                    if (not extralines) : 
                        show ('nomatch:', repr (line)) 
                        nomatchprinted = True 
show ('    and:', repr (nextline)) 
extralines.append (nextline) 
else : 
            pytest.fail (('remains unmatched: %r, see stderr' % (line,))) 

    
    

    Fix the buggy line: if (not extralines) :
assistant
#Here is Python code to fix the buggy line: if (not extralines) :
.

if (not nomatchprinted) :