Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
isprogram
/
autojump
peilaus alkaen
https://github.com/wting/autojump.git
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Projects
0
Julkaisut
53
Wiki
Toiminta
Selaa lähdekoodia
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
10 vuotta sitten
vanhempi
921b52e9d5
commit
62c0877479
2 muutettua tiedostoa
jossa
7 lisäystä
ja
2 poistoa
Jaettu näkymä
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
Näytä tiedosto
@ -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
Näytä tiedosto
@ -24,6 +24,7 @@ from autojump_utils import unico
if
is_python3
(
)
:
os
.
getcwdu
=
os
.
getcwd
xrange
=
range
def
u
(
string
)
:
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna