File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
import os , os .path
11
11
import hashlib
12
12
import cPickle
13
- import inspect
14
13
import json
15
14
from multiprocessing import Pool , cpu_count
16
15
import sys
17
16
18
17
compiler .grammar .source .parseWithTabs ()
19
18
20
- data = ""
21
- data += inspect .getsource (compiler .grammar )
22
- data += inspect .getsource (compiler .lang )
23
- data += inspect .getsource (compiler .pyparsing )
24
- grammar_digest = hashlib .sha1 (data ).hexdigest ()
25
- del data
19
+ try :
20
+ import inspect
21
+ data = ""
22
+ data += inspect .getsource (compiler .grammar )
23
+ data += inspect .getsource (compiler .lang )
24
+ data += inspect .getsource (compiler .pyparsing )
25
+ grammar_digest = hashlib .sha1 (data ).hexdigest ()
26
+ del data
27
+ except :
28
+ grammar_digest = '0000000000000000000000000000000000000000'
26
29
27
30
class Cache (object ):
28
31
def __init__ (self , dir = '.cache' ):
You can’t perform that action at this time.
0 commit comments