Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print function migration for RecoEgamma_Examples #24022

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions 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:
Expand Down Expand Up @@ -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
Expand All @@ -59,7 +60,7 @@ def search():

if __name__ == "__main__":
for file in search():
print file
print(file)



Expand Down