~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to debian/patches/59_fix_python.patch

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-26 01:27:00 UTC
  • mfrom: (1.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091126012700-pox7w0a5j2x305h9
Tags: 5.4.2.1~dfsg-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.
    (LP: #426813).
 * Dropped patches:
   - debian/patches/101-fix-ipalias.patch: Applied upstream.
   - debian/patches/99-fix-net-snmp-syslog.patch: Applied upstream.
   - debian/patches/99-fix-perl-counter-in-subagent.patch: Applied upstream.
   - ebian/patches/103-fix-ubuntu-lmsensors.patch: No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: net-snmp-5.4.2.1/python/netsnmp/client.py
 
2
===================================================================
 
3
--- net-snmp-5.4.2.1.orig/python/netsnmp/client.py      2008-03-21 18:45:33.000000000 +0100
 
4
+++ net-snmp-5.4.2.1/python/netsnmp/client.py   2009-11-12 14:03:27.000000000 +0100
 
5
@@ -28,6 +28,7 @@
 
6
         'Context':'',
 
7
         'Engineboots':0,
 
8
         'Enginetime':0,
 
9
+        'UseNumeric':0,
 
10
         }
 
11
     keys = kargs.keys()
 
12
     for key in keys:
 
13
@@ -234,8 +235,6 @@
 
14
                 var_list.append(arg)
 
15
             else:
 
16
                 var_list.append(Varbind(arg))
 
17
-    for var in var_list:
 
18
-        print "  ",var.tag, var.iid, "=", var.val, '(',var.type,')'
 
19
     res = sess.walk(var_list)
 
20
     return res
 
21