diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..f3d74a9a581e18a14a85530b6451f4afea0765c9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.pyc
+*~
diff --git a/scripts/parse_supported_params.py b/scripts/parse_supported_params.py
index 33c4ee6491531c2310ce281498e67c7fe2674ba5..c2b424438065ffde39f2fd2ba44b05a0c0b53a58 100755
--- a/scripts/parse_supported_params.py
+++ b/scripts/parse_supported_params.py
@@ -1,11 +1,14 @@
#!/usr/bin/python3
# coding: utf-8
+
+
import argparse
import re
import sys
import urllib.request
from html_table_parser import HTMLTableParser
+
# Regex for parsing options on MySQL documentation pages
# Options are (normally) specified as command-line options
# as anchor tags on the page. Certain documentation pages only
@@ -141,11 +144,16 @@ def print_yaml_options(sections, parser, file=sys.stdout):
A YAML library could be used, but we avoid extra dependencies by
just using string formatting.
"""
+
for section, url, yaml in sections:
options = parser(url, section)
- print(yaml % {'section': section,
- 'options': '\n - '.join(options),
- 'url': url}, end='', file=file)
+ options_string = '\n - '.join(options)
+ string = yaml % {
+ 'section': section,
+ 'options': options_string,
+ 'url': url
+ }
+ print(string,file=file,end= "")
if __name__ == '__main__':