Convert old print statement into function
For Python 3 compatibility.
This commit is contained in:
parent
86a20b23f5
commit
57be17d7f5
|
@ -34,7 +34,7 @@ class ReadOnlyTokenFile(BasePlugin):
|
||||||
tok, target = line.split(': ')
|
tok, target = line.split(': ')
|
||||||
self._targets[tok] = target.strip().rsplit(':', 1)
|
self._targets[tok] = target.strip().rsplit(':', 1)
|
||||||
except ValueError:
|
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
|
index += 1
|
||||||
|
|
||||||
def lookup(self, token):
|
def lookup(self, token):
|
||||||
|
|
Loading…
Reference in New Issue