]> git.phdru.name Git - xsetbg.git/blobdiff - print-filename.py
Style: Fix `flake8` error E999 SyntaxError: Missing parens in 'print'
[xsetbg.git] / print-filename.py
index 234d0a3741b88a77e9fa8c33ea6facb15e3e7f6e..921f129bbed512d21e1e6a229623e2bead4e6237 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
-"""Print background filename
+"""print(background filename)
 
-Print the filename of the current or previous background image.
+print(the filename of the current or previous background image.)
 
 This file is a part of XSetBg.
 
@@ -58,4 +58,4 @@ index, output_encoding = get_args()
 filename = xsetbg_db.select('last_shown IS NOT NULL',
                             orderBy='-last_shown')[index].full_name
 
-print filename.encode(output_encoding)
+print(filename.encode(output_encoding))