summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/POSIX.py
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-06-30 23:57:32 +0200
committerHolger Weiß <holger@zedat.fu-berlin.de>2011-06-30 23:57:32 +0200
commit9070f86fcfa6248971474581f7b47aa1b4854ac4 (patch)
treea7979a780d45cdd6e338de48690f0b764cc3ec99 /src/lib/Client/Tools/POSIX.py
parent426df7d75753c2039766f26a0e6bbb91a66af30e (diff)
downloadbcfg2-9070f86fcfa6248971474581f7b47aa1b4854ac4.tar.gz
bcfg2-9070f86fcfa6248971474581f7b47aa1b4854ac4.tar.bz2
bcfg2-9070f86fcfa6248971474581f7b47aa1b4854ac4.zip
Remove useless parentheses
Diffstat (limited to 'src/lib/Client/Tools/POSIX.py')
-rw-r--r--src/lib/Client/Tools/POSIX.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index f16b714ff..6aa0b76f8 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -148,7 +148,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
entry.set('perms', str(oct(ondisk[ST_MODE])[-4:]))
try:
content = open(entry.get('name')).read()
- if (entry.get('sensitive') not in ['true', 'True']):
+ if entry.get('sensitive') not in ['true', 'True']:
entry.set('current_bfile', binascii.b2a_base64(content))
except IOError:
error = sys.exc_info()[1]
@@ -483,7 +483,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
contentStatus = content == tempdata
if not contentStatus:
if tbin or not isString(content, self.setup['encoding']):
- if (entry.get('sensitive') not in ['true', 'True']):
+ if entry.get('sensitive') not in ['true', 'True']:
entry.set('current_bfile', binascii.b2a_base64(content))
nqtext = entry.get('qtext', '')
nqtext += '\nBinary file, no printable diff'
@@ -506,7 +506,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
do_diff = False
break
if do_diff:
- if (entry.get('sensitive') not in ['true', 'True']):
+ if entry.get('sensitive') not in ['true', 'True']:
diff = '\n'.join(rawdiff)
entry.set("current_bdiff", binascii.b2a_base64(diff))
# entry.set("current_diff", diff)
@@ -524,7 +524,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
nqtext += '\n'
nqtext += dudiff
else:
- if (entry.get('sensitive') not in ['true', 'True']):
+ if entry.get('sensitive') not in ['true', 'True']:
entry.set('current_bfile', binascii.b2a_base64(content))
nqtext = entry.get('qtext', '')
nqtext += '\nDiff took too long to compute, no printable diff'