From: Marek Marecki Date: Wed, 18 Dec 2013 20:33:00 +0000 (+0100) Subject: Some fixes to make diaspy more Python 2.x-friendly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e2c48b2f15853071b72339578477179d09150e67;p=diaspy.git Some fixes to make diaspy more Python 2.x-friendly --- diff --git a/Makefile b/Makefile index 1d37e63..6cc7606 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ test: python3 -m unittest --verbose --catch --failfast tests.py test-python2: - python2 -m unittest --verbose --catch --failfast tests.py + python2 -m unittest --verbose --catch --failfast tests clean: rm -rv ./{diaspy/,}__pycache__/ diff --git a/diaspy/connection.py b/diaspy/connection.py index 67dbabb..b591013 100644 --- a/diaspy/connection.py +++ b/diaspy/connection.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- """This module abstracts connection to pod. diff --git a/diaspy/settings.py b/diaspy/settings.py index 4e7971b..cf86e59 100644 --- a/diaspy/settings.py +++ b/diaspy/settings.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + """This module provides access to user's settings on Diaspora*. """ diff --git a/tests.py b/tests.py index 2c74e4d..f0e8980 100644 --- a/tests.py +++ b/tests.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +from __future__ import print_function + import unittest # failure to import any of the modules below indicates failed tests