merged namespace
[sfa.git] / sfa / util / namespace.py
index 89a9903..93186c9 100644 (file)
@@ -19,9 +19,9 @@ def get_authority(xrn):
 def hrn_to_pl_slicename(hrn):
     # remove any escaped no alpah numeric characters
     #hrn = re.sub('\\\[^a-zA-Z0-9]', '', hrn)
-    # remove any escaped '.' (i.e. '\.')      
-    hrn = hrn.replace('\\.', '')    
-    parts = hrn.split(".")  
+    # remove any escaped '.' (i.e. '\.')
+    hrn = hrn.replace('\\.', '')
+    parts = hrn.split(".")
     return parts[-2] + "_" + parts[-1]
 
 # assuming hrn is the hrn of an authority, return the plc authority name