Цей веб-сайт працює краще з JavaScript.
Головна
Огляд
Довідка
Увійти
isprogram
/
autojump
дзеркало
https://github.com/wting/autojump.git
Слідкувати
1
В обрані
0
Форк
0
Код
Проблеми
0
Projects
0
Релізи
53
Вікі
Активність
Переглянути джерело
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
10 роки тому
джерело
921b52e9d5
коміт
62c0877479
2 змінених файлів
з
7 додано
та
2 видалено
Розділений перегляд
Параметри порівняння
Показати статистику
Завантажити патч
Завантажити файл різниці
+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
)
:
Писати
Попередній перегляд
Завантаження…
Відмінити
Зберегти