lib/opener/constituent_parsers/de.rb in opener-constituent-parser-de-1.1.2 vs lib/opener/constituent_parsers/de.rb in opener-constituent-parser-de-1.2.0
- old
+ new
@@ -42,11 +42,11 @@
# Builds the command used to execute the kernel.
#
# @return [String]
#
def command
- return "python -E -O #{kernel} #{args.join(' ')}"
+ return "python -E #{kernel} #{args.join(' ')}"
end
# Runs the command and returns the output of STDOUT, STDERR and the
# process information.
#
@@ -58,14 +58,14 @@
raise stderr unless process.success?
return stdout, stderr, process
end
protected
-
+
##
- # capture3 method doesn't work properly with Jruby, so
+ # capture3 method doesn't work properly with Jruby, so
# this is a workaround
- #
+ #
def capture(input)
Open3.popen3(*command.split(" ")) {|i, o, e, t|
out_reader = Thread.new { o.read }
err_reader = Thread.new { e.read }
i.write input