Convert old print statement into function

For Python 3 compatibility.
This commit is contained in:
Sören Schwert 2020-07-28 14:35:49 +02:00 committed by GitHub
parent 86a20b23f5
commit 57be17d7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class ReadOnlyTokenFile(BasePlugin):
tok, target = line.split(': ')
self._targets[tok] = target.strip().rsplit(':', 1)
except ValueError:
print >>sys.stderr, "Syntax error in %s on line %d" % (self.source, index)
print("Syntax error in %s on line %d" % (self.source, index), file=sys.stderr)
index += 1
def lookup(self, token):