Skip to content

Commit

Permalink
Merge pull request #34374 from jfernan2/DQMtoPython3
Browse files Browse the repository at this point in the history
[DQM] Move to python3 all scripts in DQMServices
  • Loading branch information
cmsbuild authored Jul 7, 2021
2 parents a59283f + 4205514 commit 6a24d89
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion DQMServices/Components/python/HTTP.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from builtins import range
from cStringIO import StringIO
from io import StringIO
from pycurl import *

class RequestManager:
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/python/X509.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os, os.path
from getpass import getpass

Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqm-access
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from DQMServices.Components.HTTP import RequestManager
from DQMServices.Components.X509 import SSLOptions
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqm-grep
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Usage: dqm-grep -f PATTERN -e EXPRESSION [OPTIONS]
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqm-ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Usage: dqm-ls [-s SERVER] [-n CONNECTIONS]
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqm-mbProfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import os
import collections
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmiodatasetharvest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import re
import json
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmiolumiharvest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import os
import json
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/root2sqlite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import re
import json
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/test/test_fastHaddMerge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Usage: test_fastHaddMerge.py [-t produce|check] [-n files]
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Demo/test/dqmiodumpentries.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import ROOT
import argparse
from collections import defaultdict
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FileIO/python/DQM.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/bin/env python3

from __future__ import print_function
from builtins import range
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FileIO/scripts/compareDQMOutput.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/bin/env python3

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FileIO/scripts/compareHistograms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/bin/env python3

from __future__ import print_function
import ROOT
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FileIO/scripts/dqmMemoryStats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FileIO/scripts/visDQMUpload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/FwkIO/scripts/DQMIO2histo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/bin/env python3

"""
Script converting DQM I/O format input file into folder structured ROOT file.
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/StreamerIO/scripts/esMonitoring.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/StreamerIO/scripts/personalPlayback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import os
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/StreamerIO/scripts/ztail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import time
import os
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/StreamerIO/scripts/ztee.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import subprocess
Expand Down

0 comments on commit 6a24d89

Please sign in to comment.