summaryrefslogtreecommitdiff
path: root/cloudinit/distros/parsers/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/distros/parsers/__init__.py')
-rw-r--r--cloudinit/distros/parsers/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/parsers/__init__.py b/cloudinit/distros/parsers/__init__.py
index 6b5b6dde..5bea2ae1 100644
--- a/cloudinit/distros/parsers/__init__.py
+++ b/cloudinit/distros/parsers/__init__.py
@@ -9,10 +9,11 @@ def chop_comment(text, comment_chars):
comment_locations = [text.find(c) for c in comment_chars]
comment_locations = [c for c in comment_locations if c != -1]
if not comment_locations:
- return (text, '')
+ return (text, "")
min_comment = min(comment_locations)
before_comment = text[0:min_comment]
comment = text[min_comment:]
return (before_comment, comment)
+
# vi: ts=4 expandtab