From e75f7bb0dc5d79284308fecc997beebf91594598 Mon Sep 17 00:00:00 2001
From: Andy Bavier <acb@acb-imac.cs.princeton.edu>
Date: Fri, 25 Mar 2011 16:12:05 -0400
Subject: [PATCH] Don't filter underscores from slice names

Underscore is a legal character in slice names.  Filtering them causes problems importing these slices into the SFA.
---
 sfa/util/plxrn.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfa/util/plxrn.py b/sfa/util/plxrn.py
index e5389021..7049df66 100644
--- a/sfa/util/plxrn.py
+++ b/sfa/util/plxrn.py
@@ -54,7 +54,7 @@ class PlXrn (Xrn):
     def pl_slicename (self):
         self._normalize()
         leaf = self.leaf
-        leaf = re.sub('[^a-zA-Z0-9]', '', leaf)
+        leaf = re.sub('[^a-zA-Z0-9_]', '', leaf)
         return self.pl_login_base() + '_' + leaf
 
     #def hrn_to_pl_authname(hrn):
-- 
2.47.0