Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

#16 Broke python2 support #18

Open
wojciechwroblewski opened this issue Mar 22, 2016 · 2 comments
Open

#16 Broke python2 support #18

wojciechwroblewski opened this issue Mar 22, 2016 · 2 comments

Comments

@wojciechwroblewski
Copy link

Thanks to #16 we've got python3 support, which is great, but unfortunately it also broke support for python2. Tested on:

$ python3 --version
Python 3.5.1
$ python2 --version
Python 2.7.11
# python --version
Python 2.7.5

Using sample code provided in README.md:

#!/usr/bin/env python

from PythonConfluenceAPI import ConfluenceAPI

conf = ConfluenceAPI('admin', '12345', 'http://localhost/confluence/')

confluence_recent_data = conf.get_content()
print(len(confluence_recent_data))

Results:

$ python2 test.py
5
5
$ python3 test.py
5

It's definitely something related to future lib, my guess is that ConfluenceAPI object is somehow created twice. I decided to stick with 62c95b8 as I don't really need python3 support.

@rpcope1
Copy link
Owner

rpcope1 commented Mar 22, 2016

Noted. I'll take a look.

On Tue, Mar 22, 2016 at 4:59 AM, s1gnalrunner notifications@github.com
wrote:

Thanks to #16
#16 we've
got python3 support, which is great, but unfortunately it also broke
support for python2. Tested on:

$ python3 --version
Python 3.5.1
$ python2 --version
Python 2.7.11

python --version

Python 2.7.5

Using sample code provided in README.md:

#!/usr/bin/env python

from PythonConfluenceAPI import ConfluenceAPI

conf = ConfluenceAPI('admin', '12345', 'http://localhost/confluence/')

confluence_recent_data = conf.get_content()
print(len(confluence_recent_data))

Results:

$ python2 test.py
5
5
$ python3 test.py
5

It's definitely something related to future lib, my guess is that
ConfluenceAPI object is somehow created twice. I decided to stick with
62c95b8
62c95b8
as I don't really need python3 support.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#18

@astewart-twist
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants