aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-18 16:56:56 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-18 16:56:56 +0000
commit6d84ec1a4eac746c8b072d6053ebcadc0008750d (patch)
tree25451edcc6f704571ab0d8693530d8c8e0bb0899 /db
parentbfed0fb66f46838059758c876341c0a106aa8ae1 (diff)
Trivial changes suggested by pylint
Change-Id: I313d2838c292fa5791816102fcf57eb2641da99f
Diffstat (limited to 'db')
-rw-r--r--db/__init__.py20
-rw-r--r--db/db.py18
2 files changed, 9 insertions, 29 deletions
diff --git a/db/__init__.py b/db/__init__.py
index 3d66568..e69de29 100644
--- a/db/__init__.py
+++ b/db/__init__.py
@@ -1,20 +0,0 @@
-#! /usr/bin/python
-
-# Copyright 2014 Linaro Limited
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-import db
diff --git a/db/db.py b/db/db.py
index 9256de2..e1a0126 100644
--- a/db/db.py
+++ b/db/db.py
@@ -579,14 +579,14 @@ class VlanDB:
if __name__ == '__main__':
db = VlanDB()
- switches = db.all_switches()
- print 'The DB knows about %d switch(es)' % len(switches)
- print switches
- ports = db.all_ports()
- print 'The DB knows about %d port(s)' % len(ports)
- print ports
- vlans = db.all_vlans()
- print 'The DB knows about %d vlan(s)' % len(vlans)
- print vlans
+ s = db.all_switches()
+ print 'The DB knows about %d switch(es)' % len(s)
+ print s
+ p = db.all_ports()
+ print 'The DB knows about %d port(s)' % len(p)
+ print p
+ v = db.all_vlans()
+ print 'The DB knows about %d vlan(s)' % len(v)
+ print v