Skip to content

Commit e4c9549

Browse files
committed
解决冲突
2 parents 5c48dcb + e3a61c2 commit e4c9549

File tree

6 files changed

+46
-25
lines changed

6 files changed

+46
-25
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nohup.out
2+
lib/
3+
*.sublime-project
4+
*.sublime-workspace

litefs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
Name: leozhang
99
Email: leafcoder@gmail.com
1010
11-
Copyright (c) 2017, Leo Zhang.
11+
Copyright (c) 2017, Leafcoder.
1212
License: MIT (see LICENSE for details)
1313
'''
1414

1515
version_major = 0
1616
version_minor = 2
1717
version_build = 0
18-
__version__ = '%s.%s.%s-dev' % (version_major, version_minor, version_build)
19-
__author__ = 'Leo Zhang'
18+
__version__ = '%s.%s.%s' % (version_major, version_minor, version_build)
19+
__author__ = 'Leafcoder'
2020
__license__ = 'MIT'
2121

2222
import logging
@@ -26,7 +26,7 @@
2626
from collections import deque
2727
from Cookie import SimpleCookie
2828
from cStringIO import StringIO
29-
from errno import ENOTCONN, EMFILE, EWOULDBLOCK, EAGAIN
29+
from errno import ENOTCONN, EMFILE, EWOULDBLOCK, EAGAIN, EPIPE
3030
from functools import partial
3131
from greenlet import greenlet, getcurrent, GreenletExit
3232
from gzip import GzipFile
@@ -1087,7 +1087,7 @@ def _handler_io(self, raw, address):
10871087
)
10881088
httpfile._handler()
10891089
except socket.error as e:
1090-
if e.errno == errno.EPIPE:
1090+
if e.errno == EPIPE:
10911091
raise GreenletExit
10921092
raise
10931093
except Exception as e:

setup.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,32 @@
33

44
import sys
55
sys.dont_write_bytecode = True
6+
67
try:
78
from setuptools import setup
89
except ImportError:
910
from distutils.core import setup
1011
from Cython.Build import cythonize
1112

12-
__author__ = 'Leo Zhang'
13-
__version__ = '0.0.1-dev'
14-
__license__ = 'MIT'
13+
import litefs
14+
15+
__author__ = litefs.__author__
16+
__version__ = litefs.__version__
17+
__license__ = litefs.__license__
1518

16-
setup(name='litefs',
17-
version=__version__,
18-
description='使用 Python 从零开始构建一个 Web 服务器框架。',
19-
long_description=(
20-
'使用 Python 从零开始构建一个 Web 服务器框架。 开发 Litefs 的是为了实现一个能'
21-
'快速、安全、灵活的构建 Web 项目的服务器框架。 litefs 是一个高性能的 Http 服务'
22-
'器。Litefs 具有高稳定性、丰富的功能、系统消耗低的特点。'),
23-
author=__author__,
24-
author_email='leafcoder@gmail.com',
25-
url='https://coding.net/u/leafcoder/p/litefs',
26-
py_modules=['litefs'],
27-
ext_modules=cythonize('litefs.py'),
28-
scripts=['litefs.py'],
29-
license='MIT',
30-
platforms='any',
31-
install_requires = open("requirements.pip").read().splitlines()
19+
print litefs.__doc__
20+
setup(
21+
name='litefs',
22+
version=__version__,
23+
description='使用 Python 从零开始构建一个 Web 服务器框架。',
24+
long_description=litefs.__doc__,
25+
author=__author__,
26+
author_email='leafcoder@gmail.com',
27+
url='https://coding.net/u/leafcoder/p/litefs',
28+
py_modules=['litefs'],
29+
ext_modules=cythonize('litefs.py'),
30+
scripts=['litefs.py'],
31+
license=__license__,
32+
platforms='any',
33+
install_requires=open("requirements.pip").read().splitlines()
3234
)

site/form.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
<title>表单提交、支持jQuery提交格式</title>
66
</head>
77
<body>
8-
<h1>表单提交</h1>
8+
<h1>表单提交一</h1>
9+
<form action="./form" method="post">
10+
<div><input type="text" name="name"></div>
11+
<br>
12+
<div><input type="submit" value="提交" /></div>
13+
</form>
14+
<h1>表单提交二</h1>
915
<form action="./form" method="post">
1016
<div><input type="text" name="name"></div>
1117
<br>

site/helloword.mako

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<%def name="handler(self)">
2+
hello world
3+
4+
{{'Good'}}
5+
</%def>

site/pathinfo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def handler(self):
2+
print self.environ
3+
print self.path_info
4+
return 'ok'

0 commit comments

Comments
 (0)