teak-llvm/lldb/packages/Python/lldbsuite/test
Zachary Turner c1b7cd72db Python 3 - Turn on absolute imports, and fix existing imports.
Absolute imports were introduced in Python 2.5 as a feature
(e.g. from __future__ import absolute_import), and made default
in Python 3.

When absolute imports are enabled, the import system changes in
a couple of ways:

1) The `import foo` syntax will *only* search sys.path.  If `foo`
   isn't in sys.path, it won't be found.  Period.  Without absolute
   imports, the import system will also search the same directory
   that the importing file resides in, so that you can easily
   import from the same folder.

2) From inside a package, you can use a dot syntax to refer to higher
   levels of the current package.  For example, if you are in the
   package lldbsuite.test.utility, then ..foo refers to
   lldbsuite.test.foo.  You can use this notation with the
   `from X import Y` syntax to write intra-package references.  For
   example, using the previous locationa s a starting point, writing
   `from ..support import seven` would import lldbsuite.support.seven

Since this is now the default behavior in Python 3, this means that
importing from the same directory with `import foo` *no longer works*.
As a result, the only way to have portable code is to force absolute
imports for all versions of Python.

See PEP 0328 [https://www.python.org/dev/peps/pep-0328/] for more
information about absolute and relative imports.

Differential Revision: http://reviews.llvm.org/D14342
Reviewed By: Todd Fiala

llvm-svn: 252191
2015-11-05 19:22:28 +00:00
..
android/platform Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
api Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
arm_emulation Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
attic Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
benchmarks Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
driver/batch_mode Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
example Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
expression_command Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
functionalities Teach LLDB how to directly launch processes on the iOS simulator 2015-11-05 00:46:25 +00:00
help Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
lang Fix TestGoFormatters.py. 2015-11-05 02:17:21 +00:00
linux Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
logging Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
macosx Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
make Teach LLDB how to directly launch processes on the iOS simulator 2015-11-05 00:46:25 +00:00
plugins Tighten up sys.path, and use absolute imports everywhere. 2015-11-03 02:06:18 +00:00
python_api Teach LLDB how to directly launch processes on the iOS simulator 2015-11-05 00:46:25 +00:00
settings Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
source-manager Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
terminal Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
test_runner Python 3 - Use universal_newlines=True in subprocess.Popen. 2015-11-05 01:33:44 +00:00
tools Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
types Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
warnings/uuid Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
__init__.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
blacklist.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
curses_results.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
dosep.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
dotest_args.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
dotest_channels.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
dotest.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldb_pylint_helper.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbbench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbcurses.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbinline.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbpexpect.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbplatformutil.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbtest_config.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
lldbtest.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbutil.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lock.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
redo.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
test_categories.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
test_results.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00