aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSandro Cazzaniga <kharec@mageia.org>2013-07-07 09:53:23 +0000
committerSandro Cazzaniga <kharec@mageia.org>2013-07-07 09:53:23 +0000
commitbbe670aaa57f642352f4706b454627a2226b04b7 (patch)
treea24eab7cb25ad795757afec0366f2d21d21ddd04 /src
parentfde6e73e6f7b3869fbf2594d23049f5b77efa3c4 (diff)
downloadmsec-bbe670aaa57f642352f4706b454627a2226b04b7.tar
msec-bbe670aaa57f642352f4706b454627a2226b04b7.tar.gz
msec-bbe670aaa57f642352f4706b454627a2226b04b7.tar.bz2
msec-bbe670aaa57f642352f4706b454627a2226b04b7.tar.xz
msec-bbe670aaa57f642352f4706b454627a2226b04b7.zip
Return False if it's not a link
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/libmsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 772865b..d803f79 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -363,7 +363,7 @@ class ConfigFile:
if stat.S_ISLNK(full[stat.ST_MODE]):
link = os.readlink(self.path)
else:
- link = None
+ link = False
return link
def write(self):