[master 1/1] Escape \'s in doc strings

dashea installerbot-noreply at redhat.com
Tue Jul 28 21:47:22 UTC 2015


From: David Shea <dshea at redhat.com>

---
 pyanaconda/flags.py        | 2 +-
 pyanaconda/kickstart.py    | 2 +-
 pyanaconda/ui/gui/utils.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/flags.py b/pyanaconda/flags.py
index c6c451f..6a063cd 100644
--- a/pyanaconda/flags.py
+++ b/pyanaconda/flags.py
@@ -122,7 +122,7 @@ def read(self, filenames):
         Read and parse a filename (or a list of filenames).
         Files that can't be read are silently ignored.
         Returns a list of successfully read files.
-        filenames can contain \*, ?, and character ranges expressed with []
+        filenames can contain \\*, ?, and character ranges expressed with []
         """
 
         readfiles = []
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 52e8ef7..31c5382 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -88,7 +88,7 @@ class AnacondaKSScript(KSScript):
         This will write the script to a file named /tmp/ks-script- before
         execution.
         Output is logged by the program logger, the path specified by --log
-        or to /tmp/ks-script-\*.log
+        or to /tmp/ks-script-\\*.log
     """
     def run(self, chroot):
         """ Run the kickstart script
diff --git a/pyanaconda/ui/gui/utils.py b/pyanaconda/ui/gui/utils.py
index 811c076..83541c3 100644
--- a/pyanaconda/ui/gui/utils.py
+++ b/pyanaconda/ui/gui/utils.py
@@ -151,7 +151,7 @@ def gtk_batch_map(action, items, args=(), pre_func=None, batch_size=1):
 
     :param action: any action that has to be done on the items in the main
                    thread
-    :type action: (action_item, \*args) -> None
+    :type action: (action_item, \\*args) -> None
     :param items: an iterable of items that the action should be mapped on
     :type items: iterable
     :param args: additional arguments passed to the action function


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/756b01af789c2fcc423479f075caa738bf307ffd


More information about the anaconda-patches mailing list