Change a fprintf without argument to a fputs to comply with the new

default parameter on ubuntu
This commit is contained in:
2016-07-03 08:25:06 +02:00
parent bac7ce7184
commit 6af62d8124
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ from ..utils cimport str2bytes
cdef extern from "stdio.h":
struct FILE
int fprintf(FILE *stream, char *format, ...)
int fputs(char *string, FILE *stream)
FILE* stderr
ctypedef unsigned int off_t "unsigned long long"

View File

@ -126,7 +126,7 @@ cdef class ProgressBar:
if twentyth != self.lastlog:
if self.ontty:
<void>fprintf(stderr,b'\n')
<void>fputs(b'\n',stderr)
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
bytes2str(self.head),