Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
a9f63438
Commit
a9f63438
authored
Apr 23, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't shadow open builtin.
Turns out, builtin works fine with shlex with python 3.
parent
2ece28d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
apachedex/__init__.py
apachedex/__init__.py
+2
-3
No files found.
apachedex/__init__.py
View file @
a9f63438
...
@@ -82,7 +82,6 @@ if sys.version_info >= (3, 3):
...
@@ -82,7 +82,6 @@ if sys.version_info >= (3, 3):
bz2_open
=
bz2
.
open
bz2_open
=
bz2
.
open
_read_mode
=
'rt'
_read_mode
=
'rt'
else
:
else
:
open
=
codecs
.
open
gzip_open
=
_wrapOpen
(
gzip_open
)
gzip_open
=
_wrapOpen
(
gzip_open
)
bz2_open
=
_wrapOpen
(
bz2
.
BZ2File
)
bz2_open
=
_wrapOpen
(
bz2
.
BZ2File
)
_read_mode
=
'r'
_read_mode
=
'r'
...
@@ -1371,7 +1370,7 @@ def main():
...
@@ -1371,7 +1370,7 @@ def main():
if
state_file_name
==
'-'
:
if
state_file_name
==
'-'
:
state_file
=
sys
.
stdin
state_file
=
sys
.
stdin
else
:
else
:
state_file
=
open
(
state_file_name
,
encoding
=
'ascii'
)
state_file
=
codecs
.
open
(
state_file_name
,
encoding
=
'ascii'
)
with
state_file
:
with
state_file
:
load_start
=
time
.
time
()
load_start
=
time
.
time
()
state
=
json
.
load
(
state_file
)
state
=
json
.
load
(
state_file
)
...
@@ -1423,7 +1422,7 @@ def main():
...
@@ -1423,7 +1422,7 @@ def main():
logfile
.
seek
(
0
)
logfile
.
seek
(
0
)
break
break
else
:
else
:
logfile
=
open
(
filename
,
_read_mode
,
encoding
=
INPUT_ENCODING
)
logfile
=
codecs
.
open
(
filename
,
_read_mode
,
encoding
=
INPUT_ENCODING
)
lineno
=
0
lineno
=
0
for
lineno
,
line
in
enumerate
(
logfile
,
1
):
for
lineno
,
line
in
enumerate
(
logfile
,
1
):
if
show_progress
and
lineno
%
5000
==
0
:
if
show_progress
and
lineno
%
5000
==
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment