Just van Rossum
e29310a2b3
patch attached to sf item #643711 :
...
any_missing() returns less bogus missing modules.
- I've rewritten scan_code() more or less from scratch,
factored bits and pieces out for readability.
- keep track of global assignments and failed imports per
module; use this to determine whether the Y in "from X
import Y" is a submodule or just a global name. This is not
100% doable: you can't tell which symbols are imported when
doing a star import of a non-Python module short of actually
importing it.
- added a new method to ModuleFinder: any_missing_maybe(),
which returns *two* lists, one with certain misses, one with
possible misses. The possible misses are *very* often false
alarms, so it's useful to keep this list separate.
any_misses() now simply returns the union of
any_missing_maybe().
TODO: documentation, test_modulefinder.py
2002-12-31 16:33:00 +00:00
..
2002-12-30 20:53:52 +00:00
2002-12-16 13:54:02 +00:00
2002-09-29 00:25:51 +00:00
2002-12-29 17:00:57 +00:00
2002-12-30 19:14:38 +00:00
2002-12-24 18:31:27 +00:00
2002-08-09 16:38:32 +00:00
2002-12-31 16:03:23 +00:00
2002-12-30 23:52:01 +00:00
2002-12-20 01:54:21 +00:00
2002-06-11 06:22:31 +00:00
2002-12-30 22:14:35 +00:00
2002-08-10 00:17:59 +00:00
2002-08-10 00:17:59 +00:00
2002-11-23 12:09:28 +00:00
2002-12-30 22:04:23 +00:00
2002-02-22 11:06:30 +00:00
2001-12-15 22:12:47 +00:00
2002-12-31 11:28:22 +00:00
2002-10-28 18:09:41 +00:00
2002-12-30 22:23:12 +00:00
2002-08-12 22:11:28 +00:00
2002-06-01 14:18:47 +00:00
2002-06-30 03:39:14 +00:00
2002-12-26 18:22:54 +00:00
2002-07-16 19:30:59 +00:00
2002-05-31 23:03:33 +00:00
2002-06-01 14:18:47 +00:00
2002-12-25 16:37:19 +00:00
2002-09-11 18:20:34 +00:00
2002-10-17 16:21:35 +00:00
2002-12-31 01:08:35 +00:00
2002-04-07 06:36:23 +00:00
2002-12-02 13:08:53 +00:00
2002-04-04 22:55:58 +00:00
2002-12-30 23:36:02 +00:00
2002-06-01 19:51:15 +00:00
2002-12-31 06:55:41 +00:00
2002-12-29 16:44:31 +00:00
2001-12-27 16:27:28 +00:00
2002-08-12 20:20:08 +00:00
2002-10-30 06:09:58 +00:00
2002-06-01 19:51:15 +00:00
2002-08-30 13:09:51 +00:00
2002-11-22 08:23:09 +00:00
2002-06-01 14:25:41 +00:00
2002-12-30 22:30:22 +00:00
2002-12-30 22:30:22 +00:00
2002-06-02 18:55:56 +00:00
2002-08-14 02:58:16 +00:00
2002-06-01 14:18:47 +00:00
2002-06-03 15:58:32 +00:00
2002-06-03 10:41:45 +00:00
2002-08-04 17:22:59 +00:00
2002-11-20 23:15:54 +00:00
2002-11-21 21:45:32 +00:00
2002-06-01 14:18:47 +00:00
2002-11-05 20:38:55 +00:00
2002-11-13 14:38:17 +00:00
2002-06-03 15:58:32 +00:00
2002-05-29 16:18:42 +00:00
2002-05-14 15:50:11 +00:00
2002-11-24 02:35:35 +00:00
2002-12-16 13:11:57 +00:00
2002-11-24 02:35:35 +00:00
2002-06-28 23:32:51 +00:00
2002-11-30 03:53:15 +00:00
2002-10-30 05:17:22 +00:00
2002-06-01 19:51:15 +00:00
2002-11-09 05:08:07 +00:00
2002-12-31 13:11:54 +00:00
2002-09-12 05:08:00 +00:00
2002-06-02 18:55:56 +00:00
2002-06-03 15:58:32 +00:00
2002-06-04 02:17:04 +00:00
2002-08-09 16:38:32 +00:00
2002-09-06 16:15:58 +00:00
2002-05-29 16:18:42 +00:00
2002-12-31 16:33:00 +00:00
2002-09-22 09:01:08 +00:00
2002-06-30 03:39:14 +00:00
2002-06-01 16:07:16 +00:00
2002-06-16 01:22:13 +00:00
2002-11-24 02:35:35 +00:00
2002-12-31 13:11:54 +00:00
2002-11-14 22:00:19 +00:00
2002-12-31 13:11:54 +00:00
2002-10-09 17:23:29 +00:00
2002-12-17 16:15:34 +00:00
2002-11-13 22:01:27 +00:00
2002-08-09 16:38:32 +00:00
2002-12-23 16:30:00 +00:00
2002-06-03 15:58:32 +00:00
2002-06-01 16:07:16 +00:00
2001-10-24 22:03:35 +00:00
2002-12-31 13:11:54 +00:00
2002-12-31 07:14:18 +00:00
2002-06-27 19:59:27 +00:00
2002-06-02 18:55:56 +00:00
2002-06-02 18:55:56 +00:00
2002-07-28 09:42:57 +00:00
2002-08-21 20:56:21 +00:00
2002-12-03 08:14:35 +00:00
2002-12-28 09:23:09 +00:00
2002-12-30 22:36:09 +00:00
2002-03-23 05:55:18 +00:00
2002-12-29 23:03:38 +00:00
2002-10-19 20:19:10 +00:00
2002-06-01 14:18:47 +00:00
2001-10-29 22:25:45 +00:00
2002-12-16 13:11:57 +00:00
2002-09-11 02:32:14 +00:00
2002-06-03 15:58:32 +00:00
2002-05-31 14:14:06 +00:00
2002-11-25 20:43:55 +00:00
2002-06-02 00:40:05 +00:00
2002-12-08 21:25:00 +00:00
2002-06-02 00:40:05 +00:00
2002-10-30 05:44:50 +00:00
2002-06-01 14:18:47 +00:00
2002-12-30 22:08:05 +00:00
2002-05-14 02:13:30 +00:00
2002-10-06 17:55:08 +00:00
2002-08-22 17:31:16 +00:00
2002-11-22 14:22:49 +00:00
2002-09-26 16:39:20 +00:00
2002-06-02 00:40:05 +00:00
2002-10-14 12:22:17 +00:00
2002-06-01 19:51:15 +00:00
2002-11-14 03:31:32 +00:00
2002-09-17 18:10:34 +00:00
2002-10-03 09:42:01 +00:00
2002-06-02 18:55:56 +00:00
2002-05-31 14:13:04 +00:00
2002-11-09 05:08:07 +00:00
2002-12-30 22:36:09 +00:00
2002-12-12 17:24:35 +00:00
2002-02-08 20:41:34 +00:00
2002-12-30 23:32:50 +00:00
2002-08-10 00:17:59 +00:00
2002-10-03 09:42:01 +00:00
2002-11-05 06:06:02 +00:00
2002-08-15 14:59:02 +00:00
2002-06-14 20:41:17 +00:00
2002-12-29 17:59:24 +00:00
2002-11-06 15:40:05 +00:00
2002-10-11 14:36:24 +00:00
2002-10-16 21:21:39 +00:00
2002-09-05 21:08:25 +00:00
2002-11-27 08:29:11 +00:00
2002-11-18 16:12:54 +00:00
2002-06-01 19:51:15 +00:00
2002-10-14 21:06:02 +00:00
2002-07-16 21:35:23 +00:00
2002-11-25 17:25:04 +00:00
2002-08-02 17:12:15 +00:00
2002-04-11 20:57:30 +00:00
2002-03-31 13:59:18 +00:00
2002-06-01 14:18:47 +00:00
2002-11-01 17:14:16 +00:00
2002-12-12 12:23:32 +00:00