pyflyby 1.9.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyflyby might be problematic. Click here for more details.
- pyflyby/__init__.py +56 -0
- pyflyby/__main__.py +9 -0
- pyflyby/_autoimp.py +2114 -0
- pyflyby/_cmdline.py +531 -0
- pyflyby/_comms.py +221 -0
- pyflyby/_dbg.py +1339 -0
- pyflyby/_docxref.py +379 -0
- pyflyby/_file.py +738 -0
- pyflyby/_flags.py +230 -0
- pyflyby/_format.py +182 -0
- pyflyby/_idents.py +233 -0
- pyflyby/_import_sorting.py +165 -0
- pyflyby/_importclns.py +642 -0
- pyflyby/_importdb.py +588 -0
- pyflyby/_imports2s.py +639 -0
- pyflyby/_importstmt.py +662 -0
- pyflyby/_interactive.py +2605 -0
- pyflyby/_livepatch.py +793 -0
- pyflyby/_log.py +199 -0
- pyflyby/_modules.py +515 -0
- pyflyby/_parse.py +1441 -0
- pyflyby/_py.py +2078 -0
- pyflyby/_util.py +459 -0
- pyflyby/_version.py +7 -0
- pyflyby/autoimport.py +20 -0
- pyflyby/importdb.py +19 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/canonical.py +10 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/common.py +27 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/forget.py +10 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/mandatory.py +10 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/numpy.py +156 -0
- pyflyby-1.9.4.data/data/etc/pyflyby/std.py +335 -0
- pyflyby-1.9.4.data/data/libexec/pyflyby/colordiff +34 -0
- pyflyby-1.9.4.data/data/libexec/pyflyby/diff-colorize +148 -0
- pyflyby-1.9.4.data/data/share/doc/pyflyby/LICENSE.txt +23 -0
- pyflyby-1.9.4.data/data/share/doc/pyflyby/TODO.txt +115 -0
- pyflyby-1.9.4.data/data/share/doc/pyflyby/testing.txt +13 -0
- pyflyby-1.9.4.data/data/share/emacs/site-lisp/pyflyby.el +108 -0
- pyflyby-1.9.4.data/scripts/collect-exports +76 -0
- pyflyby-1.9.4.data/scripts/collect-imports +58 -0
- pyflyby-1.9.4.data/scripts/find-import +38 -0
- pyflyby-1.9.4.data/scripts/list-bad-xrefs +34 -0
- pyflyby-1.9.4.data/scripts/prune-broken-imports +34 -0
- pyflyby-1.9.4.data/scripts/pyflyby-diff +34 -0
- pyflyby-1.9.4.data/scripts/reformat-imports +27 -0
- pyflyby-1.9.4.data/scripts/replace-star-imports +37 -0
- pyflyby-1.9.4.data/scripts/tidy-imports +191 -0
- pyflyby-1.9.4.data/scripts/transform-imports +47 -0
- pyflyby-1.9.4.dist-info/LICENSE.txt +23 -0
- pyflyby-1.9.4.dist-info/METADATA +507 -0
- pyflyby-1.9.4.dist-info/RECORD +54 -0
- pyflyby-1.9.4.dist-info/WHEEL +5 -0
- pyflyby-1.9.4.dist-info/entry_points.txt +3 -0
- pyflyby-1.9.4.dist-info/top_level.txt +1 -0
pyflyby/__init__.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# pyflyby/__init__.py.
|
|
2
|
+
# Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen.
|
|
3
|
+
# License: MIT http://opensource.org/licenses/MIT
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
from pyflyby._autoimp import (auto_eval, auto_import,
|
|
8
|
+
find_missing_imports)
|
|
9
|
+
from pyflyby._dbg import (add_debug_functions_to_builtins,
|
|
10
|
+
attach_debugger, debug_on_exception,
|
|
11
|
+
debug_statement, debugger,
|
|
12
|
+
enable_exception_handler_debugger,
|
|
13
|
+
enable_faulthandler,
|
|
14
|
+
enable_signal_handler_debugger,
|
|
15
|
+
print_traceback, remote_print_stack)
|
|
16
|
+
from pyflyby._file import Filename
|
|
17
|
+
from pyflyby._flags import CompilerFlags
|
|
18
|
+
from pyflyby._importdb import ImportDB
|
|
19
|
+
from pyflyby._imports2s import (canonicalize_imports,
|
|
20
|
+
reformat_import_statements,
|
|
21
|
+
remove_broken_imports,
|
|
22
|
+
replace_star_imports,
|
|
23
|
+
transform_imports)
|
|
24
|
+
from pyflyby._importstmt import (Import, ImportStatement,
|
|
25
|
+
NonImportStatementError)
|
|
26
|
+
from pyflyby._interactive import (disable_auto_importer,
|
|
27
|
+
enable_auto_importer,
|
|
28
|
+
install_in_ipython_config_file,
|
|
29
|
+
load_ipython_extension,
|
|
30
|
+
unload_ipython_extension)
|
|
31
|
+
from pyflyby._livepatch import livepatch, xreload
|
|
32
|
+
from pyflyby._log import logger
|
|
33
|
+
from pyflyby._parse import PythonBlock, PythonStatement
|
|
34
|
+
from pyflyby._version import __version__
|
|
35
|
+
|
|
36
|
+
# Deprecated:
|
|
37
|
+
from pyflyby._dbg import (breakpoint, debug_exception,
|
|
38
|
+
debug_statement,
|
|
39
|
+
enable_exception_handler,
|
|
40
|
+
enable_signal_handler_breakpoint,
|
|
41
|
+
waitpoint)
|
|
42
|
+
|
|
43
|
+
from typing import Sequence
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# Promote the function & classes that we've chosen to expose publicly to be
|
|
47
|
+
# known as pyflyby.Foo instead of pyflyby._module.Foo.
|
|
48
|
+
for x in list(globals().values()):
|
|
49
|
+
if getattr(x, "__module__", "").startswith("pyflyby."):
|
|
50
|
+
x.__module__ = "pyflyby"
|
|
51
|
+
del x
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Discourage "from pyflyby import *".
|
|
55
|
+
# Use the tidy-imports/autoimporter instead!
|
|
56
|
+
__all__:Sequence[str] = []
|