mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Use print_function to standardize printing between Python 2 and Python 3
This commit is contained in:
parent
cf1ae938fc
commit
d4e5809a29
3 changed files with 13 additions and 7 deletions
|
@ -1,5 +1,7 @@
|
|||
# coding=utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from __future__ import print_function, unicode_literals
|
||||
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
|
@ -455,7 +457,7 @@ def convert_to_ascii(inputName, dirName):
|
|||
logger.info("Renaming directory to: %s." % (base2), 'ENCODER')
|
||||
os.rename(os.path.join(dir, base), dirName)
|
||||
if 'NZBOP_SCRIPTDIR' in os.environ:
|
||||
print "[NZB] DIRECTORY=%s" % (dirName) # Return the new directory to NZBGet.
|
||||
print("[NZB] DIRECTORY=%s" % (dirName))
|
||||
|
||||
for dirname, dirnames, filenames in os.walk(dirName, topdown=False):
|
||||
for subdirname in dirnames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue