diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index a7fc1af0c9..2191c284e3 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -24,16 +24,11 @@ BitBake build tools. | |||
24 | # | 24 | # |
25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
26 | 26 | ||
27 | import os, re, fcntl | 27 | import os, re |
28 | import bb | 28 | import bb |
29 | from bb import data | 29 | from bb import data |
30 | from bb import persist_data | 30 | from bb import persist_data |
31 | 31 | ||
32 | try: | ||
33 | import cPickle as pickle | ||
34 | except ImportError: | ||
35 | import pickle | ||
36 | |||
37 | class FetchError(Exception): | 32 | class FetchError(Exception): |
38 | """Exception raised when a download fails""" | 33 | """Exception raised when a download fails""" |
39 | 34 | ||
@@ -65,7 +60,6 @@ def uri_replace(uri, uri_find, uri_replace, d): | |||
65 | result_decoded[loc] = uri_decoded[loc] | 60 | result_decoded[loc] = uri_decoded[loc] |
66 | import types | 61 | import types |
67 | if type(i) == types.StringType: | 62 | if type(i) == types.StringType: |
68 | import re | ||
69 | if (re.match(i, uri_decoded[loc])): | 63 | if (re.match(i, uri_decoded[loc])): |
70 | result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) | 64 | result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) |
71 | if uri_find_decoded.index(i) == 2: | 65 | if uri_find_decoded.index(i) == 2: |