pusher / pusher-http-python

Pusher Channels HTTP API library for Python
https://pusher.com/docs/server_api_guide
MIT License
375 stars 112 forks source link

Refactor Code #188

Closed kailashchoudhary11 closed 1 year ago

kailashchoudhary11 commented 1 year ago

Using .format method or f strings will be better than using the % formatting for strings.

sonologico commented 1 year ago

Thanks for the suggestion. You're right. It would indeed be better. I'll close this issue since it's not a bug. Feel free to send a PR if you have the time and we don't get to it before you do.

kailashchoudhary11 commented 1 year ago

@sonologico Should I use fstrings or .format cause fstrings isn't supported by python < 3.7 I guess.

sonologico commented 1 year ago

.format is the one that is present in all the versions we support, so I would go for that.