diff options
Diffstat (limited to 'ranger/ext/debug.py')
-rw-r--r-- | ranger/ext/debug.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/debug.py b/ranger/ext/debug.py index 63a1cfd0..9a4dcbc0 100644 --- a/ranger/ext/debug.py +++ b/ranger/ext/debug.py @@ -2,13 +2,13 @@ LOGFILE = '/tmp/errorlog' def log(*objects, **keywords): """Writes objects to a logfile. -Has the same arguments as print() in python3""" + Has the same arguments as print() in python3""" start = 'start' in keywords and keywords['start'] or 'ranger:' sep = 'sep' in keywords and keywords['sep'] or ' ' _file = 'file' in keywords and keywords['file'] or open(LOGFILE, 'a') end = 'end' in keywords and keywords['end'] or '\n' _file.write(sep.join(map(str, (start, ) + objects)) + end) - + #for python3-only versions, this could be replaced with: # #def log(*objects, start='ranger:', sep=' ', end='\n'): |