Permalink
Browse files

update version to 0.4.4

  • Loading branch information...
1 parent 24d5fa3 commit ca1899380722180167392655953f545aca717512 @rzeng-baina rzeng-baina committed Sep 25, 2015
Showing with 14 additions and 8 deletions.
  1. +6 −0 README.rst
  2. +1 −1 rookout/base.py
  3. +6 −6 rookout/lua.py
  4. +1 −1 setup.py
View
@@ -1 +1,7 @@
A rookie's workout library by zrong
+
+- git
+- lua
+- ftp
+- conf
+- gettext
View
@@ -150,7 +150,7 @@ def get_md5(path):
md5obj = hashlib.md5()
md5obj.update(f.read())
return md5obj.hexdigest()
- raise ZrongError("Error when get md5 for %s!"%path)
+ raise FileNotFoundError("Error when get md5 for %s!"%path)
def create_zip(files, trim_arcname=None, target_file=None, **zipfile_args):
"""创建一个 zip 文件。
View
@@ -52,7 +52,7 @@ def decode(self, text):
if tstart < 0 and tend < 0:
self.text = text
elif tstart < 0 or tend < 0:
- raise ZrongError(ERRORS['unexp_table'])
+ raise TypeError(ERRORS['unexp_table'])
else:
self.text = text[tstart:tend+1]
self.at, self.ch, self.depth = 0, '', 0
@@ -222,7 +222,7 @@ def next_digit(err):
n = self.ch
self.next_chr()
if not self.ch or not self.ch.isdigit():
- raise ZrongError(err)
+ raise TypeError(err)
return n
n = ''
try:
@@ -241,10 +241,10 @@ def next_digit(err):
n += self.ch
self.next_chr()
if not self.ch or self.ch not in ('+', '-'):
- raise ZrongError(ERRORS['mfnumber_sci'])
+ raise TypeError(ERRORS['mfnumber_sci'])
n += next_digit(ERRORS['mfnumber_sci'])
n += self.digit()
- except ZrongError as e:
+ except TypeError as e:
slog.error(e)
return 0
try:
@@ -278,7 +278,7 @@ def decode_file(luafile):
:param str luafile: lua文件路径。
:return: python 对象
- :raise: :class:`rookout.base.ZrongError`
+ :raise: :class:`TypeError`
"""
luastr = read_file(luafile)
@@ -327,7 +327,7 @@ def decode(text):
:param str text: lua字符串
:return: python 对象
- :raise: :class:`rookout.base.ZrongError`
+ :raise: :class:`TypeError`
"""
return lua.decode(text)
View
@@ -2,7 +2,7 @@
setup(
name = "rookout",
- version = "0.4.3",
+ version = "0.4.4",
description = "A rookie's workout library by zrong.",
author = "zrong",
author_email = "zrongzrong@gmail.com",

0 comments on commit ca18993

Please sign in to comment.