qq547276542 / Agriculture_KnowledgeGraph

农业知识图谱(AgriKG):农业领域的信息检索,命名实体识别,关系抽取,智能问答,辅助决策
GNU General Public License v3.0
3.97k stars 1.56k forks source link

Syntax error in try.py and 'unicode' was removed in Python 3 #4

Closed cclauss closed 5 years ago

cclauss commented 6 years ago

flake8 testing of https://github.com/qq547276542/Agriculture_KnowledgeGraph on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./demo/static/assets/jquery-file-upload/server/gae-python/main.py:70:38: F821 undefined name 'unicode'
            if type(fieldStorage) is unicode:
                                     ^
./wikidataSpider/wikidataCrawler/try.py:1:1: E999 SyntaxError: invalid syntax
<!DOCTYPE html>
^
1     E999 SyntaxError: invalid syntax
1     F821 undefined name 'unicode'
2
qq547276542 commented 6 years ago

Thanks for your testing :D I will examine and deal with this problem carefully.

CrisJk commented 6 years ago

Thank you very much! try.py is useless and we removed it.

cclauss commented 6 years ago

The 'unicode' issue remains.

qq547276542 commented 6 years ago

Now the problem is sloved . Because I use some opensource code of js and css, and without careful examination it. Now I delete these useless code. Thanks for your help again 👍