Matthias Bussonnier
f47211c129
Use scandir on py3.5+ for less disk access on filename completion
...
On Python 3.5+, we can make use of scandir that not only list the
content of the directory as an iterator but caches some infomations (for
example, `is_dir()`; this avoid extra stats call to the underlying
filesytem and can be – according to pep 471 – 2x to 20 time faster
especially on NFS filesystem where stats call is expensive.
From a quick this is the only place where scandir would make sens, as
most other places only require the name.
Fixes 1381
2019-08-12 17:56:29 -07:00
Dave Halter
c413b486fb
Actually import IsADirectoryError
2019-06-22 15:43:11 +02:00
Dave Halter
3ae4a154f9
Fix project search if a directory is called manage.py, fixes #1314
2019-06-22 14:04:32 +02:00
Dave Halter
0a56211df8
Setting correct parents for CompiledObject filters
2019-06-04 23:31:42 +02:00
Dave Halter
9c40c75136
Add file_io for Jedi for listdir
2019-05-31 21:25:48 +02:00
Dave Halter
9463c112df
Cleanup of finalizer did not work properly
2019-05-22 00:26:27 +02:00
Dave Halter
c05629b3de
Adapt small changes in parso's FileIO
2019-05-22 00:03:01 +02:00
micbou
744662d096
Fix resource warnings
2019-05-21 13:35:12 +02:00
Dave Halter
a356859e7e
Got something small wrong with compatibility
2019-04-07 22:03:26 +02:00
Dave Halter
96d607d411
Cross Python version fixes for unicode/bytes things
2019-04-07 21:51:25 +02:00
Dave Halter
e95f4c7aa5
Fix module loading in Python 2
2019-04-05 13:39:27 +02:00
Dave Halter
02b01a8bc3
Fix an import error for Python 2
2019-04-04 13:20:41 +02:00
Dave Halter
c0f5c5f24c
print_to_stderr can be replaced with a proper future import
2019-04-03 09:37:40 +02:00
Dave Halter
c997d568f3
Remove unused code
2019-04-03 09:30:22 +02:00
Dave Halter
2f1ce2bbf9
Some test fixes
2019-03-28 19:23:55 +01:00
Dave Halter
7cd79c440c
Try to read bytes if possible, not unicode
2019-03-27 22:19:57 +01:00
Dave Halter
a437c2cb02
Fix test_imports tests, now zip imports work again
2019-03-26 09:16:38 +01:00
Dave Halter
b6612a83c3
WIP import improvement, getting rid of bad old code
2019-03-21 23:22:19 +01:00
Marc Zimmermann
cc0c4cc308
fixing permission denied errors with project.json
2019-02-16 04:28:26 +01:00
Hugo
7c9f24a18e
Drop support for EOL Python 3.3 ( #1019 )
2018-08-04 00:40:00 +02:00
Dave Halter
1c76359291
stderr of the child processes should be printed in debug output
...
This fixes #1169 . It might have a bit of a different intention, but at least it's now possible to see output of the subprocess and it's not just a black hole.
2018-08-03 13:35:21 +02:00
Dave Halter
ccb460b433
Use close_fds for posix.
2018-08-03 13:08:07 +02:00
Dave Halter
4b276bae87
The import resolution for namespace packages was wrong
...
With this change we can now include all parents of the script, which will make
relative imports always work.
Now the whole meta_path is scanned and not just importlib's PathFinder.
Fixes #1183 .
2018-07-21 00:16:10 +02:00
Daniel Hahler
10b61c41f4
Some minor flake8 fixes
2018-07-16 23:41:42 +02:00
micbou
282c6a2ba1
Use highest possible pickle protocol
2018-06-23 14:45:34 +02:00
micbou
106b11f1af
Set stdout and stdin to binary mode on Python 2 and Windows
2018-06-22 00:08:53 +02:00
micbou
197aa22f29
Use cPickle on Python 2 if available
...
Attempt to load the C version of pickle on Python 2 as it is way faster.
2018-06-21 19:39:08 +02:00
micbou
70c2fce9c2
Replace distutils.spawn.find_executable with shutil.which
...
The distutils.spawn.find_executable function is not available on stock system
Python 3 in recent Debian-based distributions. Since shutil.which is a better
alternative but not available on Python 2.7, we include a copy of that function
and use it in place of find_executable.
2018-06-07 21:07:22 +02:00
Dave Halter
7b15c70551
Fix a lot of old docs code that doesn't exist anymore
2018-04-15 11:52:45 +02:00
Dave Halter
43ab9563e2
For the second time in a row it's called creationflags not creation_flags
2018-04-14 11:06:24 +02:00
Dave Halter
db21942c61
Refactor something small
2018-04-14 01:48:52 +02:00
Dave Halter
81771264e0
CREATE_NO_WINDOW was introduced in Python 3.7 and didn't exist before
2018-04-13 22:05:08 +02:00
Dave Halter
ed80ed9437
Use the correct parameter name for creation flags
2018-04-13 19:04:53 +02:00
Dave Halter
83d635cbac
Add a way to generalize Popen
2018-04-13 10:17:30 +02:00
Dave Halter
f5ba6de38c
Cleanup the namespace lookups so that it also works for Python 3.7
2018-03-25 23:25:23 +02:00
micbou
c6635ccc55
Properly raise broken pipe exception
2018-03-24 12:02:06 +01:00
Dave Halter
c8bb41662e
Merge the windows fixes
2018-03-23 00:55:23 +01:00
Dave Halter
5d36114be4
Use inspect.Parameter.kind for better differentiation between param types
...
Refs #292
2018-03-13 22:47:08 +01:00
Dave Halter
9e9c62a5ab
Get rid of the imp library import in Python3 to avoid warnings, fixes #1001
2018-03-05 10:55:21 +01:00
T.Rzepka
e869e700c7
Documented the misbehavior of Windows pipes in combination with Python.
2018-02-20 21:41:49 +01:00
T.Rzepka
99130e7664
Fix for Python 2 and 3 on Windows, see #1037 .
2018-02-17 13:49:10 +01:00
Dave Halter
fa9364307f
Add comments to implicit namespaces and fix some minor things.
...
See #1005 .
2018-02-15 20:25:07 +01:00
Dave Halter
9177c120f4
Merge the implicit namespace improvement (pkgutils.itermodules modification)
...
There are still a few issues that need to be addressed.
2018-02-15 20:08:58 +01:00
Dave Halter
68f840de60
Refactor django path support
2018-01-24 19:13:05 +01:00
Dave Halter
d986c44b94
Merge with master
...
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Dave Halter
2a0e8f91d3
A possible introduction for projects
2018-01-15 23:57:08 +01:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Hugo
7821203d8e
Use automatic formatters
2018-01-07 10:40:05 +02:00
Hugo
7c31ea9042
Drop support for EOL Python 2.6
2018-01-07 10:40:05 +02:00
Maxim Novikov
ff65cf8ebe
Use compatible syntax
2018-01-02 19:14:12 +01:00