Some fixes to make diaspy more Python 2.x-friendly
authorMarek Marecki <marekjm@taistelu.com>
Wed, 18 Dec 2013 20:33:00 +0000 (21:33 +0100)
committerMarek Marecki <marekjm@taistelu.com>
Wed, 18 Dec 2013 20:33:00 +0000 (21:33 +0100)
Makefile
diaspy/connection.py
diaspy/settings.py
tests.py

index 1d37e63fd3c0bf6211b217c3ad19362c9e1fb57a..6cc7606dc8d4c103388ac342dd8ee88d76ab2132 100644 (file)
--- 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__/
index 67dbabb373ae4af8e4e2b622bd0e985310e0c1d7..b5910131979b68f0fd344ebabbaefa6928ee8770 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 
 """This module abstracts connection to pod.
index 4e7971b1dcd46d6318c3a4980439426de03ba203..cf86e598ac672dd5fd4ddafdb70de892c67fa5fc 100644 (file)
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 """This module provides access to user's settings on Diaspora*.
 """
 
index 2c74e4d4d6a1cd92d26503c30450870f237a8206..f0e89809a0798d0921a4ed1259b05152dc790548 100644 (file)
--- 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