This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
isprogram
/
autojump
огледало од
https://github.com/wting/autojump.git
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Projects
0
Издања
53
Вики
Activity
Преглед изворни кода
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…
Откажи
Сачувај