本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
isprogram
/
autojump
镜像来自
https://github.com/wting/autojump.git
關注
1
收藏
0
複製
0
程式碼
問題
0
Projects
0
版本發佈
53
Wiki
活動
瀏覽代碼
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
10 年之前
父節點
921b52e9d5
當前提交
62c0877479
共有
2 個檔案被更改
,包括
7 行新增
和
2 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
:
Write
Preview
Loading…
取消
儲存