# HG changeset patch # User Doug Simon # Date 1387187074 -3600 # Node ID e3b0608d6ab8db2ec8d603e7c0f047db94b40d27 # Parent f17969ae4a3546e23b18626e33227875912eaea5 fixed pylint warnings diff -r f17969ae4a35 -r e3b0608d6ab8 mx/mx_graal.py --- a/mx/mx_graal.py Mon Dec 16 08:20:36 2013 +0100 +++ b/mx/mx_graal.py Mon Dec 16 10:44:34 2013 +0100 @@ -1348,14 +1348,14 @@ def trufflejar(args=None): """make truffle.jar""" - + # Test with the built classes _unittest(["com.oracle.truffle.api.test", "com.oracle.truffle.api.dsl.test"], ['@Test', '@LongTest', '@Parameters']) - + # We use the DSL processor as the starting point for the classpath - this # therefore includes the DSL processor, the DSL and the API. packagejar(mx.classpath("com.oracle.truffle.dsl.processor").split(os.pathsep), "truffle.jar", None, "com.oracle.truffle.dsl.processor.TruffleProcessor") - + # Test with the JAR _unittest(["com.oracle.truffle.api.test", "com.oracle.truffle.api.dsl.test"], ['@Test', '@LongTest', '@Parameters'], "truffle.jar:") @@ -1453,7 +1453,7 @@ mx.distribution('GRAAL').add_update_listener(_installGraalJarInJdks) def packagejar(classpath, outputFile, mainClass=None, annotationProcessor=None, stripDebug=False): - prefix = '' if mx.get_os() != 'windows' else '\\??\\' # long file name hack + prefix = '' if mx.get_os() != 'windows' else '\\??\\' # long file name hack print "creating", outputFile filecount, totalsize = 0, 0 with zipfile.ZipFile(outputFile, 'w', zipfile.ZIP_DEFLATED) as zf: @@ -1475,7 +1475,7 @@ for root, _, files in os.walk(cp): for f in files: fullname = os.path.join(root, f) - arcname = fullname[len(cp)+1:].replace('\\', '/') + arcname = fullname[len(cp) + 1:].replace('\\', '/') if f.endswith(".class"): zf.write(prefix + fullname, arcname)