changeset 16725:22b2950a0613

workaround for buggy pylint warning
author Doug Simon <doug.simon@oracle.com>
date Fri, 08 Aug 2014 12:37:25 +0200
parents 300fffc06b55
children 734247341e6e
files mxtool/mx.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Fri Aug 08 12:33:38 2014 +0200
+++ b/mxtool/mx.py	Fri Aug 08 12:37:25 2014 +0200
@@ -655,7 +655,7 @@
         if includedInJDK and java().javaCompliance >= JavaCompliance(includedInJDK):
             return None
 
-        bootClassPathAgent = self.bootClassPathAgent.lower() == 'true' if hasattr(self, 'bootClassPathAgent') else False
+        bootClassPathAgent = getattr(self, 'bootClassPathAgent').lower() == 'true' if hasattr(self, 'bootClassPathAgent') else False
 
         return download_file_with_sha1(self.name, path, self.urls, self.sha1, sha1path, resolve, not self.optional, canSymlink=not bootClassPathAgent)