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__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/distros/parsers/__init__.py b/cloudinit/distros/parsers/__init__.py
index 8334a5e6..1c413eaa 100644
--- a/cloudinit/distros/parsers/__init__.py
+++ b/cloudinit/distros/parsers/__init__.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
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]