Skip to content

Support python3: print statement has been replaced with a function#352

Merged
nniclausse merged 2 commits intoprocessone:developfrom
didier13150:develop
Feb 26, 2023
Merged

Support python3: print statement has been replaced with a function#352
nniclausse merged 2 commits intoprocessone:developfrom
didier13150:develop

Conversation

@didier13150
Copy link
Contributor

Hi tisba,
As requested, I submit a PR for python3 support.
Regards,
Didier.

Copy link

@sandrotosi sandrotosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need

--- a/src/tsung-plotter/tsplot.py.in
+++ b/src/tsung-plotter/tsplot.py.in
@@ -41,7 +41,7 @@ SYS_STATS_CONF = os.path.join(SHAREDIR,
 sys.path.append(LIBDIR)
 
 from tsung_plotter.tsung import TsungLog
-from ConfigParser import ConfigParser
+from configparser import ConfigParser
 
 # Prevents pylab from requiring a X Server to run
 import matplotlib

and

--- a/src/tsung-plotter/tsung/tsung.py
+++ b/src/tsung-plotter/tsung/tsung.py
@@ -38,7 +38,7 @@ This package has its own configuration f
 stats names with tsung stat type.
 """
 
-from ConfigParser import ConfigParser
+from configparser import ConfigParser
 
 # data are produced every 10 seconds, by default
 # we read real used interval in log file (deduced from timestamps)

@tisba
Copy link
Collaborator

tisba commented Oct 7, 2019

ping @didier13150

@didier13150
Copy link
Contributor Author

Do I need to squash my commits ?

@nniclausse nniclausse merged commit 62c9fbd into processone:develop Feb 26, 2023
@nniclausse nniclausse added this to the 1.8.0 milestone Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants