ia64/xen-unstable

changeset 6993:90bcdd41dbf7

Mark unused variables as such. Remove unused import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Sep 20 17:22:20 2005 +0100 (2005-09-20)
parents 26c6d506a97c
children b54d922cb897
files tools/python/xen/xend/encode.py
line diff
     1.1 --- a/tools/python/xen/xend/encode.py	Tue Sep 20 17:21:39 2005 +0100
     1.2 +++ b/tools/python/xen/xend/encode.py	Tue Sep 20 17:22:20 2005 +0100
     1.3 @@ -26,7 +26,6 @@ import types
     1.4  from StringIO import StringIO
     1.5  
     1.6  import urllib
     1.7 -import httplib
     1.8  import random
     1.9  import md5
    1.10  
    1.11 @@ -104,7 +103,7 @@ def encode_data(d):
    1.12      val = ({}, None)
    1.13      if d is None: return val
    1.14      multipart = 0
    1.15 -    for (k, v) in data_values(d):
    1.16 +    for (_, v) in data_values(d):
    1.17          if encode_isfile(v):
    1.18              multipart = 1
    1.19              break
    1.20 @@ -156,7 +155,7 @@ def encode_multipart(d):
    1.21  def mime_boundary():
    1.22      random.seed()
    1.23      m = md5.new()
    1.24 -    for i in range(0, 10):
    1.25 +    for _ in range(0, 10):
    1.26          c = chr(random.randint(1, 255))
    1.27          m.update(c)
    1.28      b = m.hexdigest()