Commit 2babdea8 authored by Anton Gladky's avatar Anton Gladky

Fix warning in stderr, which broke autopkgtest.

parent d87d2386
From d4af522fee5b2b629ed84b4cbfc7e736e53dfe25 Mon Sep 17 00:00:00 2001
From: Anton Gladky <gladky.anton@gmail.com>
Date: Tue, 22 Jul 2014 18:53:46 +0200
Subject: [PATCH] Modify slightly description of save-loadVars
Doctest was producing warnings, because variables were
overwriting. Do not execute loadVars command, but let
it be in documentation.
---
py/utils.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/py/utils.py b/py/utils.py
index 13a9dae..8c3a995 100644
--- a/py/utils.py
+++ b/py/utils.py
@@ -37,12 +37,8 @@ def saveVars(mark='',loadNow=True,**kw):
(1, 2, 3)
those variables will be save in the .xml file, when the simulation itself is saved. To recover those variables once the .xml is loaded again, use
-
- >>> loadVars('something')
-
- and they will be defined in the yade.params.\ *mark* module. The *loadNow* parameter calls :yref:`yade.utils.loadVars` after saving automatically.
-
- If 'something' already exists, given variables will be inserted.
+ ``loadVars('something')``and they will be defined in the yade.params.\ *mark* module. The *loadNow* parameter calls :yref:`yade.utils.loadVars`
+ after saving automatically. If 'something' already exists, given variables will be inserted.
"""
import cPickle
try:
--
1.9.3
01_remove_google_analytics.patch
02_redirect_stdout.patch
03_redirect_stdout.patch
04_modify_description.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment