[apparmor] [patch] Drop unused function split_name() in aa.py
Christian Boltz
apparmor at cboltz.de
Sun Feb 21 14:46:07 UTC 2016
Hello,
$subject.
[ 74-drop-unused-split_name.diff ]
=== modified file 'utils/apparmor/aa.py'
--- utils/apparmor/aa.py 2016-02-20 12:32:36 +0000
+++ utils/apparmor/aa.py 2016-02-21 14:43:21 +0000
@@ -4317,12 +4317,6 @@
else:
return '%s^%s' % (name1, name2)
-def split_name(name):
- names = name.split('^')
- if len(names) == 1:
- return name, name
- else:
- return names[0], names[1]
def commonprefix(new, old):
match = re.search(r'^([^\0]*)[^\0]*(\0\1[^\0]*)*$', '\0'.join([new, old]))
if match:
Regards,
Christian Boltz
--
NO' and 'YES' are short words which need long thoughts.
Most of the troubles in life are the result of saying
'YES' too soon or 'NO' too late !!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160221/fcbd75d1/attachment.pgp>
More information about the AppArmor
mailing list