From: Vratko Polak Date: Wed, 9 Mar 2016 13:02:21 +0000 (+0100) Subject: Fix logic in updater.py with respect to Counter class X-Git-Tag: release/beryllium-sr1~34 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=e9c2854d58767d0ff9dc2866f88249485bc6bf2f;hp=9f03f8f2d7ed7e21d6d4a8e8dc608522cf47d155;p=integration%2Ftest.git Fix logic in updater.py with respect to Counter class Previously, it worked for Counter.py but not for collections. Change-Id: I0fff144b0c261b47ce40a03766281f9df642f277 Signed-off-by: Vratko Polak --- diff --git a/tools/pcep_updater/updater.py b/tools/pcep_updater/updater.py index aa711eac2b..95c2fb87da 100644 --- a/tools/pcep_updater/updater.py +++ b/tools/pcep_updater/updater.py @@ -39,7 +39,7 @@ import time try: from collections import Counter except ImportError: # Python 2.6 does not have Counter in collections. - import Counter # Assumes that user copies Counter.py around. + from Counter import Counter # Assumes that user copies Counter.py around. import AuthStandalone @@ -89,7 +89,7 @@ class CounterDown(object): """Counter which also knows how many items are left to be added.""" def __init__(self, tasks): - self.counter = Counter.Counter() + self.counter = Counter() self.opened = tasks def add(self, result):