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.

Files changed (54) hide show
  1. pyflyby/__init__.py +56 -0
  2. pyflyby/__main__.py +9 -0
  3. pyflyby/_autoimp.py +2114 -0
  4. pyflyby/_cmdline.py +531 -0
  5. pyflyby/_comms.py +221 -0
  6. pyflyby/_dbg.py +1339 -0
  7. pyflyby/_docxref.py +379 -0
  8. pyflyby/_file.py +738 -0
  9. pyflyby/_flags.py +230 -0
  10. pyflyby/_format.py +182 -0
  11. pyflyby/_idents.py +233 -0
  12. pyflyby/_import_sorting.py +165 -0
  13. pyflyby/_importclns.py +642 -0
  14. pyflyby/_importdb.py +588 -0
  15. pyflyby/_imports2s.py +639 -0
  16. pyflyby/_importstmt.py +662 -0
  17. pyflyby/_interactive.py +2605 -0
  18. pyflyby/_livepatch.py +793 -0
  19. pyflyby/_log.py +199 -0
  20. pyflyby/_modules.py +515 -0
  21. pyflyby/_parse.py +1441 -0
  22. pyflyby/_py.py +2078 -0
  23. pyflyby/_util.py +459 -0
  24. pyflyby/_version.py +7 -0
  25. pyflyby/autoimport.py +20 -0
  26. pyflyby/importdb.py +19 -0
  27. pyflyby-1.9.4.data/data/etc/pyflyby/canonical.py +10 -0
  28. pyflyby-1.9.4.data/data/etc/pyflyby/common.py +27 -0
  29. pyflyby-1.9.4.data/data/etc/pyflyby/forget.py +10 -0
  30. pyflyby-1.9.4.data/data/etc/pyflyby/mandatory.py +10 -0
  31. pyflyby-1.9.4.data/data/etc/pyflyby/numpy.py +156 -0
  32. pyflyby-1.9.4.data/data/etc/pyflyby/std.py +335 -0
  33. pyflyby-1.9.4.data/data/libexec/pyflyby/colordiff +34 -0
  34. pyflyby-1.9.4.data/data/libexec/pyflyby/diff-colorize +148 -0
  35. pyflyby-1.9.4.data/data/share/doc/pyflyby/LICENSE.txt +23 -0
  36. pyflyby-1.9.4.data/data/share/doc/pyflyby/TODO.txt +115 -0
  37. pyflyby-1.9.4.data/data/share/doc/pyflyby/testing.txt +13 -0
  38. pyflyby-1.9.4.data/data/share/emacs/site-lisp/pyflyby.el +108 -0
  39. pyflyby-1.9.4.data/scripts/collect-exports +76 -0
  40. pyflyby-1.9.4.data/scripts/collect-imports +58 -0
  41. pyflyby-1.9.4.data/scripts/find-import +38 -0
  42. pyflyby-1.9.4.data/scripts/list-bad-xrefs +34 -0
  43. pyflyby-1.9.4.data/scripts/prune-broken-imports +34 -0
  44. pyflyby-1.9.4.data/scripts/pyflyby-diff +34 -0
  45. pyflyby-1.9.4.data/scripts/reformat-imports +27 -0
  46. pyflyby-1.9.4.data/scripts/replace-star-imports +37 -0
  47. pyflyby-1.9.4.data/scripts/tidy-imports +191 -0
  48. pyflyby-1.9.4.data/scripts/transform-imports +47 -0
  49. pyflyby-1.9.4.dist-info/LICENSE.txt +23 -0
  50. pyflyby-1.9.4.dist-info/METADATA +507 -0
  51. pyflyby-1.9.4.dist-info/RECORD +54 -0
  52. pyflyby-1.9.4.dist-info/WHEEL +5 -0
  53. pyflyby-1.9.4.dist-info/entry_points.txt +3 -0
  54. 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] = []
pyflyby/__main__.py ADDED
@@ -0,0 +1,9 @@
1
+ # pyflyby/__main__.py
2
+ # Copyright (C) 2014, 2015 Karl Chen.
3
+ # License: MIT http://opensource.org/licenses/MIT
4
+
5
+
6
+
7
+ if __name__ == "__main__":
8
+ from pyflyby._py import py_main
9
+ py_main()