提交 39059eb7 编写于 作者: M minqiyang

Polish code

上级 d4b10eef
......@@ -72,8 +72,6 @@ def guard(new_generator=None):
new_generator = UniqueNameGenerator(new_generator)
elif isinstance(new_generator, six.binary_type):
new_generator = UniqueNameGenerator(new_generator.decode())
else:
raise TypeError(str(new_generator) + " should be unicode or str")
old = switch(new_generator)
yield
switch(old)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册