Skip to content

Commit

Permalink
search-notes.py: Use cPickle when available
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Apr 21, 2013
1 parent af27b21 commit 548f8bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion misc/notes/search-notes.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@
import fnmatch import fnmatch
import getopt import getopt
import os import os
import pickle
import re import re
import sys import sys


# Load the faster C variant of the pickle module where possible, but
# fall back to the Python implementation that's always available.
try:
import cPickle as pickle
except ImportError:
import pickle

try: try:
import Levenshtein import Levenshtein
levenshtein_supported = True levenshtein_supported = True
Expand Down

0 comments on commit 548f8bb

Please sign in to comment.