872 sig = sig.replace(discard, "", 1) |
872 sig = sig.replace(discard, "", 1) |
873 sig = sig.strip(", \t\r\n") |
873 sig = sig.strip(", \t\r\n") |
874 if self.__enoughCommas(sig, commas): |
874 if self.__enoughCommas(sig, commas): |
875 if showContext: |
875 if showContext: |
876 calltips.append("{0}{1}{2}{3}".format( |
876 calltips.append("{0}{1}{2}{3}".format( |
877 fullCtx, contextSeparator, word, sig)) |
877 fullCtx, |
|
878 contextSeparator if fullCtx else "", |
|
879 word, sig)) |
878 else: |
880 else: |
879 calltips.append("{0}{1}".format(word, sig)) |
881 calltips.append("{0}{1}".format(word, sig)) |
880 del query |
882 del query |
881 finally: |
883 finally: |
882 db.commit() |
884 db.commit() |