使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
autojump
镜像自地址
https://github.com/wting/autojump.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
53
百科
动态
浏览代码
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
10 年前
父节点
921b52e9d5
当前提交
62c0877479
共有
2 个文件被更改
,包括
7 次插入
和
2 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+6
-2
bin/autojump_utils.py
+1
-0
tests/autojump_utils_test.py
+ 6
- 2
bin/autojump_utils.py
查看文件
@ -172,8 +172,12 @@ def sanitize(directories):
def
second
(
xs
)
:
it
=
iter
(
xs
)
try
:
it
.
next
(
)
return
it
.
next
(
)
if
is_python2
(
)
:
it
.
next
(
)
return
it
.
next
(
)
elif
is_python3
(
)
:
next
(
it
)
return
next
(
it
)
except
StopIteration
:
return
None
+ 1
- 0
tests/autojump_utils_test.py
查看文件
@ -24,6 +24,7 @@ from autojump_utils import unico
if
is_python3
(
)
:
os
.
getcwdu
=
os
.
getcwd
xrange
=
range
def
u
(
string
)
:
撰写
预览
正在加载...
取消
保存