Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Invalid syntax in profanity_filter.py Class config #3

Closed
tonmoyborah opened this issue Dec 11, 2018 · 2 comments
Closed

Invalid syntax in profanity_filter.py Class config #3

tonmoyborah opened this issue Dec 11, 2018 · 2 comments

Comments

@tonmoyborah
Copy link

tonmoyborah commented Dec 11, 2018

Hi @rominf
When I do

from profanity_filter import ProfanityFilter as pf
pf.censor("That's bullshit!")

This error pops
SyntaxError: invalid syntax in File "/usr/local/lib/python3.5/dist-packages/profanity_filter/profanity_filter.py", line 102
censor_char: str = '*'

Is this a python3 issue? Does this only support python 2?

@tonmoyborah
Copy link
Author

This requires python>3.6 I realised

@rominf
Copy link
Owner

rominf commented Dec 12, 2018

Yep:
PyPI Python version requirements

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

2 participants