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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
apachedex
Commits
9fa71de0
Commit
9fa71de0
authored
Apr 03, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write a newline when done iterating over lines.
So line count remains visible.
parent
965f6d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
apachedex/__init__.py
apachedex/__init__.py
+2
-0
No files found.
apachedex/__init__.py
View file @
9fa71de0
...
@@ -475,6 +475,7 @@ def main():
...
@@ -475,6 +475,7 @@ def main():
logfile
=
open
(
filename
)
logfile
=
open
(
filename
)
else
:
else
:
logfile
.
seek
(
0
)
logfile
.
seek
(
0
)
lineno
=
0
for
lineno
,
line
in
enumerate
(
logfile
,
1
):
for
lineno
,
line
in
enumerate
(
logfile
,
1
):
if
lineno
%
5000
==
0
:
if
lineno
%
5000
==
0
:
sys
.
stderr
.
write
(
'%i
\
r
'
%
lineno
)
sys
.
stderr
.
write
(
'%i
\
r
'
%
lineno
)
...
@@ -512,6 +513,7 @@ def main():
...
@@ -512,6 +513,7 @@ def main():
error_detail
=
error_detail
)
error_detail
=
error_detail
)
site_data
.
accumulate
(
match
,
url_match
,
date
)
site_data
.
accumulate
(
match
,
url_match
,
date
)
all_lines
+=
lineno
all_lines
+=
lineno
sys
.
stderr
.
write
(
'%i
\
n
'
%
lineno
)
end_parsing_time
=
time
.
time
()
end_parsing_time
=
time
.
time
()
os
.
chdir
(
args
.
out
)
os
.
chdir
(
args
.
out
)
with
open
(
'index.html'
,
'w'
)
as
out
:
with
open
(
'index.html'
,
'w'
)
as
out
:
...
...
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