Repository: incubator-slider Updated Branches: refs/heads/develop 44c4bb996 -> 65c33e787
SLIDER-623 wrapping 2.4 incompatible print statment in try except Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/65c33e78 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/65c33e78 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/65c33e78 Branch: refs/heads/develop Commit: 65c33e787dae82187be095a618dfbf71a896f4fb Parents: 44c4bb9 Author: Jon Maron <[email protected]> Authored: Tue Nov 11 12:37:33 2014 -0500 Committer: Jon Maron <[email protected]> Committed: Tue Nov 11 12:37:33 2014 -0500 ---------------------------------------------------------------------- slider-core/src/test/python/agent/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/65c33e78/slider-core/src/test/python/agent/main.py ---------------------------------------------------------------------- diff --git a/slider-core/src/test/python/agent/main.py b/slider-core/src/test/python/agent/main.py index e50642d..116d179 100755 --- a/slider-core/src/test/python/agent/main.py +++ b/slider-core/src/test/python/agent/main.py @@ -27,7 +27,10 @@ import os def main(): print "Executing echo" - print 'Argument List: {0}'.format(str(sys.argv)) + try: + print 'Argument List: {0}'.format(str(sys.argv)) + except AttributeError: + pass parser = OptionParser() parser.add_option("--log", dest="log_folder", help="log destination")
