From 3000e34762093491f570997eea8543302630b463 Mon Sep 17 00:00:00 2001 From: Martin Kolman Date: Oct 26 2016 14:57:01 +0000 Subject: [PATCH 1/2] Use Python 3 --- diff --git a/prepare_anaconda_help_content.py b/prepare_anaconda_help_content.py index 922e12a..d629e8e 100755 --- a/prepare_anaconda_help_content.py +++ b/prepare_anaconda_help_content.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Process the Installation Guide to a format suitable for use as built-in-help in Anaconda import os From 5cee58d1a6150806c1ececcf0b01bc995d302754 Mon Sep 17 00:00:00 2001 From: Martin Kolman Date: Oct 26 2016 14:57:01 +0000 Subject: [PATCH 2/2] Fix some typos --- diff --git a/prepare_anaconda_help_content.py b/prepare_anaconda_help_content.py index d629e8e..e7e3a98 100755 --- a/prepare_anaconda_help_content.py +++ b/prepare_anaconda_help_content.py @@ -177,7 +177,7 @@ print("saving modified XMLs to storage") for path, tree in xml_files.items(): tree.write(path) -# replate the oustide links here with sed as lxml is not able to do that for us +# replace the outside links here with sed as lxml is not able to do that for us print("removing obsolete tags") template = "the full \&PRODUCT\; Installation Guide<\/citetitle>, available at \&IGURL\;" for path in glob.glob(os.path.join(OUTPUT_FOLDER, "*.xml")):