From eaa76dab43756a2d9a3fa4b868cdb6c32f27cd9a Mon Sep 17 00:00:00 2001
From: Wim Lavrijsen <WLavrijsen@lbl.gov>
Date: Wed, 8 Dec 2010 02:52:34 +0000
Subject: [PATCH] allow _ as a valid class name character

git-svn-id: http://root.cern.ch/svn/root/trunk@37381 27541ba8-7e3a-0410-8455-c3a389f83636
---
 bindings/pyroot/src/Utility.cxx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bindings/pyroot/src/Utility.cxx b/bindings/pyroot/src/Utility.cxx
index 3b62c3ef22a..a860321484a 100644
--- a/bindings/pyroot/src/Utility.cxx
+++ b/bindings/pyroot/src/Utility.cxx
@@ -608,10 +608,11 @@ const std::string PyROOT::Utility::Compound( const std::string& name )
 
    std::string compound = "";
    for ( int ipos = (int)cleanName.size()-1; 0 <= ipos; --ipos ) {
-      if ( isspace( cleanName[ipos] ) ) continue;
-      if ( isalnum( cleanName[ipos] ) || cleanName[ipos] == '>' ) break;
+      char c = cleanName[ipos];
+      if ( isspace( c ) ) continue;
+      if ( isalnum( c ) || c == '_' || c == '>' ) break;
 
-      compound = cleanName[ipos] + compound;
+      compound = c + compound;
    }
 
    return compound;
-- 
GitLab