Closed cclauss closed 5 years ago
@cclauss Thanks a lot. Porting current project code to Python 3 that is exactly what we are doing on schedule.
curl 127.0.0.1:50000/report/ -X POST -d '{"source": "test", "user_id": "10000", "ip": "127.0.0.1", "uid": "abcabc112333222"}' -H "Content-Type:application/json" {"ec": 100, "error": "invalid source"} @leohowell 是什么原因呢
Python 2 end of life is in less than 200 days...
flake8 testing of https://github.com/momosecurity/aswan on Python 3.7.1
$ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
name
name
in__all__