From 6f41a721581c6f3757774fcc45e487c131cb055a Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Tue, 1 Sep 2015 08:10:23 -0700 Subject: [PATCH] Adds utf-8 encoding to f5 module_utils The contributor's name on line 10 (originally line 7) includes a character that the default Python encoding (ASCII) raises an error on when interpreting the file. Specifying the utf-8 encoding, as is done in other modules, resolves the error. The error being raised is SyntaxError: Non-ASCII character '\xc3' in file /.../lib/ansible/module_utils/f5.py on line 7, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details --- lib/ansible/module_utils/f5.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/module_utils/f5.py b/lib/ansible/module_utils/f5.py index 097a6370af..e04e6b2f1e 100644 --- a/lib/ansible/module_utils/f5.py +++ b/lib/ansible/module_utils/f5.py @@ -1,3 +1,6 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible