diff --git a/RecoEgamma/Examples/test/dbs_discovery.py b/RecoEgamma/Examples/test/dbs_discovery.py index ac812561ed4b1..776dc366e5029 100755 --- a/RecoEgamma/Examples/test/dbs_discovery.py +++ b/RecoEgamma/Examples/test/dbs_discovery.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +from __future__ import print_function import httplib, urllib, urllib2, types, string, os, sys # return the list of files obtained from the data discovery and based upon environnement variables: @@ -44,8 +45,8 @@ def search(): data = response.read() except urllib2.HTTPError as e: if e.code==201: - print e.headers - print e.msg + print(e.headers) + print(e.msg) pass else: raise e @@ -59,7 +60,7 @@ def search(): if __name__ == "__main__": for file in search(): - print file + print(file)