From 101a9693b384634f85cb4a0cabefb6c09855c3a8 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 27 Apr 2016 15:52:27 +0200 Subject: [PATCH] [FIX] payment*: fix invalid coding -*- coding: utf-'8' "-*-" is not a valid encoding. Introduced by 666387a2746e24b9ca312261c3a536e9af4c9d4e I think. It was probably a typo/replace gone bad and it got copy-pasted everywhere. Emacs complains every time you try to save changes to files with this invalid encoding. This changes all of them to coding: utf-8 adhering to eae045949d65fb4236e1d7b3fc3e806673711fe1. Done with: find . -name '*.py' -print0 |\ xargs -0 sed -ie 's/-\*- coding: utf-'"'"'8'"'"' "-\*-"/coding: utf-8/' --- addons/payment/models/payment_acquirer.py | 2 +- addons/payment_adyen/models/adyen.py | 2 +- addons/payment_authorize/models/authorize.py | 2 +- addons/payment_buckaroo/models/buckaroo.py | 2 +- addons/payment_ogone/models/ogone.py | 2 +- addons/payment_paypal/models/paypal.py | 2 +- addons/payment_sips/models/sips.py | 2 +- addons/payment_stripe/models/payment_acquirer.py | 2 +- addons/payment_stripe/models/payment_method.py | 2 +- addons/payment_stripe/models/payment_transaction.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 474ccb5aaea..eaa8263478a 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import logging import openerp diff --git a/addons/payment_adyen/models/adyen.py b/addons/payment_adyen/models/adyen.py index d8d06042365..f9f17126a13 100644 --- a/addons/payment_adyen/models/adyen.py +++ b/addons/payment_adyen/models/adyen.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import base64 import json diff --git a/addons/payment_authorize/models/authorize.py b/addons/payment_authorize/models/authorize.py index 39575961969..828fd614ded 100644 --- a/addons/payment_authorize/models/authorize.py +++ b/addons/payment_authorize/models/authorize.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import hashlib import hmac diff --git a/addons/payment_buckaroo/models/buckaroo.py b/addons/payment_buckaroo/models/buckaroo.py index 0dd11ae0750..80cfbc2ddfb 100644 --- a/addons/payment_buckaroo/models/buckaroo.py +++ b/addons/payment_buckaroo/models/buckaroo.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 from hashlib import sha1 import logging import urllib diff --git a/addons/payment_ogone/models/ogone.py b/addons/payment_ogone/models/ogone.py index 585ad5a09ba..27a19b0e39f 100644 --- a/addons/payment_ogone/models/ogone.py +++ b/addons/payment_ogone/models/ogone.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import datetime from hashlib import sha1 diff --git a/addons/payment_paypal/models/paypal.py b/addons/payment_paypal/models/paypal.py index 2b262002781..d4b8f615bb3 100644 --- a/addons/payment_paypal/models/paypal.py +++ b/addons/payment_paypal/models/paypal.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import base64 import json diff --git a/addons/payment_sips/models/sips.py b/addons/payment_sips/models/sips.py index 9c74bf5ef06..df669fd3804 100644 --- a/addons/payment_sips/models/sips.py +++ b/addons/payment_sips/models/sips.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import json import logging diff --git a/addons/payment_stripe/models/payment_acquirer.py b/addons/payment_stripe/models/payment_acquirer.py index 1a0f6f3ed6e..2ef53629481 100644 --- a/addons/payment_stripe/models/payment_acquirer.py +++ b/addons/payment_stripe/models/payment_acquirer.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 from odoo import api, fields, models diff --git a/addons/payment_stripe/models/payment_method.py b/addons/payment_stripe/models/payment_method.py index 8fb07704b2e..3bb0deb8de9 100644 --- a/addons/payment_stripe/models/payment_method.py +++ b/addons/payment_stripe/models/payment_method.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import requests diff --git a/addons/payment_stripe/models/payment_transaction.py b/addons/payment_stripe/models/payment_transaction.py index 66409f0b942..a4b7affb331 100644 --- a/addons/payment_stripe/models/payment_transaction.py +++ b/addons/payment_stripe/models/payment_transaction.py @@ -1,4 +1,4 @@ -# -*- coding: utf-'8' "-*-" +# coding: utf-8 import json import logging