From 0bbd56014c73d325b4b03dc30a2078998c389d04 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Tue, 3 Feb 2009 07:03:13 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20socket=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BA=D0=B0=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B8=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@815 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_profile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/cl_profile.py b/pym/cl_profile.py index b899d56..f26cf72 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -1783,6 +1783,7 @@ class _file(_error): self.dirs = [] self.files = [] self.links = [] + self.sockets = [] def getFilesDir(dirP, dirname,names): for nameFile in names: absNameFile = dirname + "/" + nameFile @@ -1794,6 +1795,8 @@ class _file(_error): dirP.files.append(absNameFile) elif os.path.isdir(absNameFile): dirP.dirs.append(absNameFile) + elif stat.S_ISSOCK(os.stat(absNameFile)[stat.ST_MODE]): + dirP.sockets.append(absNameFile) for profileDir in profilesDirs: if profileDir: dirP = dirProf()