diff options
Diffstat (limited to 'rp/utils/find_roa')
-rwxr-xr-x | rp/utils/find_roa | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/rp/utils/find_roa b/rp/utils/find_roa index 1fc0af3d..4cfcccac 100755 --- a/rp/utils/find_roa +++ b/rp/utils/find_roa @@ -1,13 +1,13 @@ #!/usr/bin/env python # # $Id$ -# +# # Copyright (C) 2014 Dragon Research Labs ("DRL") -# +# # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. -# +# # THE SOFTWARE IS PROVIDED "AS IS" AND DRL DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL DRL BE LIABLE FOR ANY SPECIAL, DIRECT, @@ -22,8 +22,6 @@ matching specified prefixes. """ import os -import sys -import base64 import argparse import rpki.POW import rpki.oids @@ -54,7 +52,7 @@ class Prefix(object): def __init__(self, val): addr, length = val.split("/") - length, sep, maxlength = length.partition("-") + length, sep, maxlength = length.partition("-") # pylint: disable=W0612 self.prefix = rpki.POW.IPAddress(addr) self.length = int(length) self.maxlength = int(maxlength) if maxlength else self.length |