[SCM] master: Use splitext instead of split

scox@sourceware.org scox@sourceware.org
Thu Dec 6 03:48:00 GMT 2007


The branch, master has been updated
       via  abf779095e5f0032dd63a47ff641faed580989fa (commit)
      from  159b6d1d9636793df6ffaf4eea39d0d1f58fc552 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit abf779095e5f0032dd63a47ff641faed580989fa
Author: Stan Cox <scox@redhat.com>
Date:   Wed Dec 5 22:34:15 2007 -0500

    Use splitext instead of split
    
    * gen-type-expect-tests.py (j.start_test): Use splitext instead of split

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/debuginfo/ChangeLog               |    4 ++++
 .../frysk/debuginfo/gen-type-expect-tests.py       |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog
index 7706b70..82bb3b9 100644
--- a/frysk-core/frysk/debuginfo/ChangeLog
+++ b/frysk-core/frysk/debuginfo/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-05  Stan Cox  <scox@redhat.com>
+
+	* gen-type-expect-tests.py (j.start_test): Use splitext instead of split
+
 2007-12-04  Andrew Cagney  <cagney@redhat.com>
 
 	Merge frysk.sys.Sig into frysk.sys.Signal.
diff --git a/frysk-core/frysk/debuginfo/gen-type-expect-tests.py b/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
index 73aaa1f..5daa7a5 100644
--- a/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
+++ b/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
@@ -142,7 +142,7 @@ public class %s extends TestLib {
 
     def start_test(self, executable, name):
         print("    public void test_%s () {" % (name))
-        tokens = os.path.abspath(executable).split(".")
+        tokens = os.path.splitext(os.path.abspath(executable))
         print('	TypeTestbed typeTestbed = new TypeTestbed("%s", "test%s");' % (os.path.basename(tokens[0]), name))
 
     def add_test(self, name, type, etype, decl, value):


hooks/post-receive
--
frysk system monitor/debugger



More information about the Frysk-cvs mailing list