S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
isprogram
/
autojump
zrcadlo
https://github.com/wting/autojump.git
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Projekty
0
Vydání
53
Wiki
Aktivita
Procházet zdrojové kódy
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
před 10 roky
rodič
921b52e9d5
revize
62c0877479
2 změnil soubory
, kde provedl
7 přidání
a
2 odebrání
Rozdělené zobrazení
Možnosti rozdílového porovnání
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+6
-2
bin/autojump_utils.py
+1
-0
tests/autojump_utils_test.py
+ 6
- 2
bin/autojump_utils.py
Zobrazit soubor
@ -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
Zobrazit soubor
@ -24,6 +24,7 @@ from autojump_utils import unico
if
is_python3
(
)
:
os
.
getcwdu
=
os
.
getcwd
xrange
=
range
def
u
(
string
)
:
Zapsat
Náhled
Načítá se…
Zrušit
Uložit