Skip to content

Conversation

@elibarzilay
Copy link

I don't know what's your policy for accommodating old versions, but the recent change broke this on older python (I'm using 3.4) because it doesn't have the f"..." syntax. If it's acceptable, then this switches it to plain strings which make it work again on that version.

I don't know what's your policy for accommodating old versions, but the recent change broke this on older python (I'm using 3.4) because it doesn't have the `f"..."` syntax.  If it's acceptable, then this switches it to plain strings which make it work again on that version.
@elibarzilay
Copy link
Author

Just to clarify, I personally would rather use the new syntax, and arguably I should update my environment --- but since piazza is intended for universities, and department setups might be outdated, I thought that in this case it might be better to just avoid the new syntax to make it work better in such situations.

@hfaran
Copy link
Owner

hfaran commented Sep 8, 2023

This is fine, but I would still prefer we at least use str.format here (which should still be supported in 3.4) instead of string concatenation: https://docs.python.org/3.5/library/stdtypes.html#str.format

Can you make that update? Thanks.

'https://piazza.com/class',
data=f'from=%2Fsignup&email={email}&password={password}&remember=on&csrf_token={csrf_token}'
'https://piazza.com/class',
data='from=%2Fsignup&email=' + email + '&password=' + password + '&remember=on&csrf_token=' + csrf_token
Copy link
Owner

Choose a reason for hiding this comment

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

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.

2 participants