From 43ab0c4ca9673ff382b8553594cbbc51794b2082 Mon Sep 17 00:00:00 2001 From: Mick Jordan <mick.jordan@oracle.com> Date: Tue, 11 Aug 2015 11:39:55 -0700 Subject: [PATCH] pylint fixes --- mx.fastr/mx_fastr.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mx.fastr/mx_fastr.py b/mx.fastr/mx_fastr.py index 13924ee636..ac68c0b72e 100644 --- a/mx.fastr/mx_fastr.py +++ b/mx.fastr/mx_fastr.py @@ -22,7 +22,7 @@ # import tempfile, platform, subprocess, shlex from os.path import join, sep -from argparse import ArgumentParser, REMAINDER +from argparse import ArgumentParser import mx import mx_gate import mx_graal @@ -31,10 +31,10 @@ import os _fastr_suite = mx.suite('fastr') -def RcommandClass(): +def r_command_class(): return "com.oracle.truffle.r.shell.RCommand" -def RscriptCommandClass(): +def rscript_command_class(): return "com.oracle.truffle.r.shell.RscriptCommand" def runR(args, className, nonZeroIsFatal=True, extraVmArgs=None, runBench=False, graal_vm='server'): @@ -90,11 +90,11 @@ def rcommon(args, command, klass): def rshell(args): '''run R shell''' - return rcommon(args, 'R', RcommandClass()) + return rcommon(args, 'R', r_command_class()) def rscript(args): '''run Rscript''' - return rcommon(args, 'Rscript', RscriptCommandClass()) + return rcommon(args, 'Rscript', rscript_command_class()) def build(args): '''FastR build''' -- GitLab