Skip to content

Commit

Permalink
Upgrade Python 2 code to Python 3 (#890)
Browse files Browse the repository at this point in the history
* checkfiledocs.py: Upgrade Python 2 code to Python 3
* patest_suggested_vs_streaminfo_latency.py: Py2 --> Py3
  • Loading branch information
cclauss authored Apr 19, 2024
1 parent 3388d8e commit 7171f07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/utils/checkfiledocs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function

import os
import os.path
import string
Expand Down Expand Up @@ -62,8 +64,8 @@ def printError( f, message ):
global currentFile
if f != currentFile:
currentFile = f
print f, ":"
print "\t!", message
print(f, ":")
print("\t!", message)


for f in sourceFiles:
Expand All @@ -83,5 +85,3 @@ def printError( f, message ):

if not '@ingroup' in s:
printError( f, "no doxygen @ingroup tag" )


4 changes: 3 additions & 1 deletion test/patest_suggested_vs_streaminfo_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Requires matplotlib for plotting: http://matplotlib.sourceforge.net/
"""
from __future__ import print_function

import os
from pylab import *
import numpy
Expand Down Expand Up @@ -92,7 +94,7 @@ def setDisplayRangeSeconds( maxSeconds ):

for framesPerBuffer in compositeTestFramesPerBufferValues:
commandString = testExeName + " " + str(inputDeviceIndex) + " " + str(outputDeviceIndex) + " " + str(sampleRate) + " " + str(framesPerBuffer) + ' > ' + dataFileName
print commandString
print(commandString)
os.system(commandString)

d = loadCsvData(dataFileName)
Expand Down

0 comments on commit 7171f07

Please sign in to comment.