Skip to content

Commit

Permalink
Remove needless dependency on future library
Browse files Browse the repository at this point in the history
  • Loading branch information
jplitza committed Sep 12, 2019
1 parent c06e2eb commit 7d9869c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ The script depends on the following libraries:
* dateutil
* pytz
* tzlocal
* future

It also expects the `snmp-mibs-downloader` package.

All of these can be installed on Ubuntu as follows:

`apt install python3-dateutil python3-tz python3-tzlocal python3-future snmp-mibs-downloader`
`apt install python3-dateutil python3-tz python3-tzlocal snmp-mibs-downloader`

## Usage

Expand Down
3 changes: 1 addition & 2 deletions birdagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"""
from __future__ import print_function

from past.builtins import cmp
from builtins import object
from adv_agentx import AgentX
from adv_agentx import SnmpGauge32, SnmpCounter32, SnmpIpAddress
Expand Down Expand Up @@ -140,7 +139,7 @@ def __init__(self, cfgfile, birdcli, sscmd):
def ipCompare(ip1, ip2):
lst1 = "%3s.%3s.%3s.%3s" % tuple(ip1.split("."))
lst2 = "%3s.%3s.%3s.%3s" % tuple(ip2.split("."))
return cmp(lst1, lst2)
return (lst1>lst2)-(lst1<lst2)

@staticmethod
def combinedConfigLines(filename):
Expand Down

0 comments on commit 7d9869c

Please sign in to comment.