diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2017-03-29 19:52:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 19:52:38 +0200 |
| commit | 49615acb1db1358e3fb7082f482dc62f7e41c692 (patch) | |
| tree | a8caccc2307423d9a8ce6e28c566a9e588d78f95 /budget/utils.py | |
| parent | bf2c11f8a9f14b2553892df92b4d6e44fc21d2a2 (diff) | |
| parent | 4799fcb34f1319615666fb0663bbb6cb12e8a4d1 (diff) | |
| download | ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.zip ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.tar.gz ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.tar.bz2 | |
Merge pull request #192 from JocelynDelalande/jd-remove-warnings
Warnings hunt !
Diffstat (limited to 'budget/utils.py')
| -rw-r--r-- | budget/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/budget/utils.py b/budget/utils.py index f518049..0e6251b 100644 --- a/budget/utils.py +++ b/budget/utils.py @@ -1,3 +1,4 @@ +import base64 import re import inspect @@ -120,3 +121,6 @@ def list_of_dicts2csv(dict_to_convert): if six.PY3: csv_file = BytesIO(csv_file.getvalue().encode('utf-8')) return csv_file + +# base64 encoding that works with both py2 and py3 and yield no warning +base64_encode = base64.encodestring if six.PY2 else base64.encodebytes |
