Skip to contentSkip to conversation

rteval: Correct Python version in doc/rteval.txt

PATCH In review Tomas Glozar 2 participants 2 messages Aug 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rteval: Correct Python version in doc/rteval.txt

doc/rteval.txt specifies that rteval is a Python 2.x program. This is not true, since rteval no longer works with Python 2.x:

$ python2 rteval-cmd
  File "rteval-cmd", line 67
    print(f"Don't know how to summarize {repfile} (tarfile open failed)")
                                                                       ^
SyntaxError: invalid syntax

Replace "Python 2.x" with "Python 3.x".

---
 doc/rteval.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/rteval.txt +1 -1
index 7342866..569168e 100644
@@ -21,7 +21,7 @@ of a network packet). To give a realtime application the best chance
 of meeting its deadline(s), a realtime OS must minimize the time
 between event occurance and the servicing of that event (latency). 
 
-This paper describes the 'rteval' program, a Python 2.x program
+This paper describes the 'rteval' program, a Python 3.x program
 developed at Red Hat to help quantify realtime performance on the
 Realtime kernel. Rteval is an attempt to put together a synthetic
 benchmark which mimics a well behaved realtime application, running on
Signature · 1 line
2.39.3
#1 lore raw
Quoted 32 lines · Tomas Glozar

doc/rteval.txt specifies that rteval is a Python 2.x program. This is not true, since rteval no longer works with Python 2.x:

$ python2 rteval-cmd
  File "rteval-cmd", line 67
    print(f"Don't know how to summarize {repfile} (tarfile open failed)")
                                                                       ^
SyntaxError: invalid syntax

Replace "Python 2.x" with "Python 3.x".

---
 doc/rteval.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/rteval.txt +1 -1
index 7342866..569168e 100644
@@ -21,7 +21,7 @@ of a network packet). To give a realtime application the best chance
 of meeting its deadline(s), a realtime OS must minimize the time
 between event occurance and the servicing of that event (latency). 
 
-This paper describes the 'rteval' program, a Python 2.x program
+This paper describes the 'rteval' program, a Python 3.x program
 developed at Red Hat to help quantify realtime performance on the
 Realtime kernel. Rteval is an attempt to put together a synthetic
 benchmark which mimics a well behaved realtime application, running on
Signature · 1 line
2.39.3

Thanks for the clean-up