Sfoglia il codice sorgente

Merge pull request #59 from donno2048/dev

Fix grammar in README and remove unnecessary import
WangWeimin 4 anni fa
parent
commit
84e4379894
2 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 4 5
      README.md
  2. 0 1
      pywebio/input.py

+ 4 - 5
README.md

@@ -44,7 +44,7 @@ PyWebIO provides a series of imperative functions to obtain user input and outpu
 
 
 Features:
 Features:
 
 
-- Use synchronization instead of callback-based method to get input
+- Use synchronization instead of a callback-based method to get input
 - Non-declarative layout, simple and efficient
 - Non-declarative layout, simple and efficient
 - Less intrusive: old script code can be transformed into a Web application only by modifying the input and output operation
 - Less intrusive: old script code can be transformed into a Web application only by modifying the input and output operation
 - Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp, FastAPI framework
 - Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp, FastAPI framework
@@ -66,7 +66,7 @@ pip3 install -U https://code.aliyun.com/wang0618/pywebio/repository/archive.zip
 
 
 **Prerequisites**: PyWebIO requires Python 3.5.2 or newer
 **Prerequisites**: PyWebIO requires Python 3.5.2 or newer
 
 
-## Quick start
+## Quickstart
 
 
 **Hello, world**
 **Hello, world**
 
 
@@ -121,7 +121,7 @@ if __name__ == '__main__':
 
 
 **Integration with web framework**
 **Integration with web framework**
 
 
-To integrate PyWebIO application into Tornado, all you need is adding a `RequestHandler` to the existing Tornado application:
+To integrate a PyWebIO application into Tornado, all you need is to add a `RequestHandler` to the existing Tornado application:
 
 
 ```python
 ```python
 import tornado.ioloop
 import tornado.ioloop
@@ -224,7 +224,7 @@ pip3 install -U https://code.aliyun.com/wang0618/pywebio/repository/archive.zip
 
 
 **系统要求**: PyWebIO要求 Python 版本在 3.5.2 及以上
 **系统要求**: PyWebIO要求 Python 版本在 3.5.2 及以上
 
 
-## Quick start
+## Quickstart
 
 
 **Hello, world**
 **Hello, world**
 
 
@@ -312,4 +312,3 @@ if __name__ == "__main__":
 ## Document
 ## Document
 
 
 使用手册和实现文档见 [https://pywebio.readthedocs.io](https://pywebio.readthedocs.io/zh_CN/latest/)
 使用手册和实现文档见 [https://pywebio.readthedocs.io](https://pywebio.readthedocs.io/zh_CN/latest/)
-

+ 0 - 1
pywebio/input.py

@@ -61,7 +61,6 @@ Functions doc
 """
 """
 
 
 import logging
 import logging
-from base64 import b64decode
 from collections.abc import Mapping
 from collections.abc import Mapping
 
 
 from .io_ctrl import single_input, input_control, output_register_callback
 from .io_ctrl import single_input, input_control, output_register_callback