X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fnamespace.py;fp=sfa%2Futil%2Fnamespace.py;h=93186c969a927a769aab8dacf6fe729a57c36674;hb=eababa96fb603cdd552bc03091813544b099befd;hp=89a9903dbfcc50b6901041dc2a4bbee9dc219788;hpb=a8a91083ea1868971c7884a405ce3fe89010eede;p=sfa.git diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index 89a9903d..93186c96 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -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