Ticket #5079: 5079-notebook.patch

File 5079-notebook.patch, 778 bytes (added by boothby, 12 years ago)
  • sage/server/notebook/cell.py

    # HG changeset patch
    # User Tom Boothby <boothby@u.washington.edu>
    # Date 1232826190 28800
    # Node ID 708509ab10ff3da533d8e232ca18b214807cf971
    # Parent  f4c6662819fc0a8e99f3a5ea12ef42fb1bc83ecd
    Fixed call to strip_string_literals to reflect changes from fixing #5079
    
    diff -r f4c6662819fc -r 708509ab10ff sage/server/notebook/cell.py
    a b  
    914914
    915915        """
    916916        # Do *not* cache
    917         s, _ = strip_string_literals(self.input_text())
     917        s = strip_string_literals(self.input_text())[0]
    918918        return bool(re.search('(?<!\w)interact\s*\(.*\).*', s) or re.search('\s*@\s*interact\s*\n', s))
    919919
    920920    def is_interacting(self):