Skip to content

Conversation

@nmurtagh
Copy link
Contributor

@nmurtagh nmurtagh commented Apr 26, 2016

Addresses #13

@nmurtagh nmurtagh force-pushed the python3 branch 5 times, most recently from f83389b to 115331c Compare April 26, 2016 14:36
self.assertEqual(base64_encoded[-1], '=')

# actual test
self.assertNotEqual(jose.b64encode_url(istr), '=')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion looks broken

@Newky
Copy link
Contributor

Newky commented Apr 26, 2016

Looks good to me

jose.py Outdated
('enc', enc), ('alg', alg)])
header = dict(
list((add_header or {}).items()) + [('enc', enc), ('alg', alg)]
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't add this but it looks a bit ugly.
It would look much better this way: header = dict(add_header or {}, enc=enc, alg=alg)

@yuriikonovaliuk
Copy link
Collaborator

Please add a note to CHANGES file.

@nmurtagh
Copy link
Contributor Author

@Newky @yuriikonovaliuk Thanks for the reviews guys - I added a commit with some cleanups, please take a look. I removed encode_safe as it didn't seem to do anything useful...

This was referenced Apr 26, 2016
'Intended Audience :: Information Technology',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2 :: Only',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line you no longer need...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can just change it to Programming Language :: Python :: 2.7 and add some more with Python 3.* versions

@hmpf
Copy link

hmpf commented Apr 27, 2016

Splendid! Django is dropping support for 2.7 next year and jose was one of the hold outs.

@jordanambra
Copy link

Will this get its merge conflicts resolved and an update pushed to pypi?

@bmamouri
Copy link

bmamouri commented May 25, 2018

Why the maintainer of this project hate Python 3 so much?

This should have already been merged into master.

@PegasusWang
Copy link

Plz, push to pypi?

@Jamim
Copy link

Jamim commented May 11, 2019

Hi @nmurtagh,
Could you please resolve the conflicts?
Thank you!

@IamTugy
Copy link

IamTugy commented Jan 14, 2023

is that repository deprecated? it doesnt work with python 3.
get this error right at the init:
File "/Users/*****/*****/*****.py", line 8, in <module> from jose import jwt # type: ignore ^^^^^^^^^^^^^^^^^^^^ File "/Users/*****/Library/Caches/pypoetry/virtualenvs/*****-py3.11/lib/python3.11/site-packages/jose.py", line 546 print decrypt(deserialize_compact(jwt), {'k':key}, ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants