Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
isprogram
/
autojump
kopie van
https://github.com/wting/autojump.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Projects
0
Publicaties
53
Wiki
Activiteit
Bladeren bron
Add xrange() and fix second() for Python3.
pull/307/head
William Ting
10 jaren geleden
bovenliggende
921b52e9d5
commit
62c0877479
2 gewijzigde bestanden
met
toevoegingen van 7
en
2 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+6
-2
bin/autojump_utils.py
+1
-0
tests/autojump_utils_test.py
+ 6
- 2
bin/autojump_utils.py
Bestand weergeven
@ -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
Bestand weergeven
@ -24,6 +24,7 @@ from autojump_utils import unico
if
is_python3
(
)
:
os
.
getcwdu
=
os
.
getcwd
xrange
=
range
def
u
(
string
)
:
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan