| OLD | NEW |
| 1 # Copyright 2010 Google Inc. All Rights Reserved. | 1 # Copyright 2010 Google Inc. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
| 5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 # the precedence of local search path (crbug/493869). | 29 # the precedence of local search path (crbug/493869). |
| 30 # The implementation here preloads all dns/ modules into this package so clients | 30 # The implementation here preloads all dns/ modules into this package so clients |
| 31 # don't need to worry about import path issue. | 31 # don't need to worry about import path issue. |
| 32 # An easier solution might be modify dns/ modules to use relative path, but I | 32 # An easier solution might be modify dns/ modules to use relative path, but I |
| 33 # tried not to touch third_party lib for now. | 33 # tried not to touch third_party lib for now. |
| 34 sys.path.insert(0, third_party_dir) | 34 sys.path.insert(0, third_party_dir) |
| 35 from dns import __all__ as all_dns_modules | 35 from dns import __all__ as all_dns_modules |
| 36 all_dns_modules = ['dns.' + m for m in all_dns_modules] | 36 all_dns_modules = ['dns.' + m for m in all_dns_modules] |
| 37 map(__import__, all_dns_modules) | 37 map(__import__, all_dns_modules) |
| 38 sys.path.pop(0) | 38 sys.path.pop(0) |
| OLD | NEW |