diff options
author | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:48:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:48:38 -0400 |
commit | f0791bbd7297e737d9e13d0b0bb21473b173b2a7 (patch) | |
tree | 95e2b7806dce0936edd69eca780d180d2ce3195d /src/pyinterp.cc | |
parent | add6f6ca2a711e3337f83bd15be5a03e22842591 (diff) | |
download | fork-ledger-f0791bbd7297e737d9e13d0b0bb21473b173b2a7.tar.gz fork-ledger-f0791bbd7297e737d9e13d0b0bb21473b173b2a7.tar.bz2 fork-ledger-f0791bbd7297e737d9e13d0b0bb21473b173b2a7.zip |
Cleanup whitespace
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r-- | src/pyinterp.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index e0801604..e0fd2d59 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -126,7 +126,7 @@ void python_interpreter_t::initialize() void python_interpreter_t::hack_system_paths() { // Hack ledger.__path__ so it points to a real location - python::object sys_module = python::import("sys"); + python::object sys_module = python::import("sys"); python::object sys_dict = sys_module.attr("__dict__"); python::list paths(sys_dict["path"]); @@ -177,7 +177,7 @@ object python_interpreter_t::import_into_main(const string& str) if (! mod) throw_(std::runtime_error, _("Failed to import Python module %1") << str); - + // Import all top-level entries directly into the main namespace main_nspace.update(mod.attr("__dict__")); @@ -193,7 +193,7 @@ object python_interpreter_t::import_option(const string& str) { path file(str); - python::object sys_module = python::import("sys"); + python::object sys_module = python::import("sys"); python::object sys_dict = sys_module.attr("__dict__"); python::list paths(sys_dict["path"]); @@ -312,7 +312,7 @@ value_t python_interpreter_t::python_command(call_scope_t& args) delete[] argv; throw; } - + for (std::size_t i = 0; i < args.size() + 1; i++) delete[] argv[i]; delete[] argv; @@ -445,7 +445,7 @@ namespace { } } } - + value_t python_interpreter_t::functor_t::operator()(call_scope_t& args) { try { |