summaryrefslogtreecommitdiff
path: root/python/helpers/pydev/pydev_localhost.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/helpers/pydev/pydev_localhost.py')
-rw-r--r--python/helpers/pydev/pydev_localhost.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/python/helpers/pydev/pydev_localhost.py b/python/helpers/pydev/pydev_localhost.py
index 4e7a4d95fc12..13c4d02bba9e 100644
--- a/python/helpers/pydev/pydev_localhost.py
+++ b/python/helpers/pydev/pydev_localhost.py
@@ -1,21 +1,18 @@
-import pydevd_constants
-if pydevd_constants.USE_LIB_COPY:
- import _pydev_socket as socket
-else:
- import socket
+
+from _pydev_imps import _pydev_socket as socket
_cache = None
def get_localhost():
'''
Should return 127.0.0.1 in ipv4 and ::1 in ipv6
-
+
localhost is not used because on windows vista/windows 7, there can be issues where the resolving doesn't work
- properly and takes a lot of time (had this issue on the pyunit server).
-
+ properly and takes a lot of time (had this issue on the pyunit server).
+
Using the IP directly solves the problem.
'''
#TODO: Needs better investigation!
-
+
global _cache
if _cache is None:
try: