ia64/xen-unstable

changeset 1642:3c4b53f2e2a1

bitkeeper revision 1.1038.1.2 (40e2d15cfcuphKQbfhX2mh2JEFMyPA)

Some missing 'types' imports and prefixes spotted by Niraj.
author mjw@wray-m-3.hpl.hp.com
date Wed Jun 30 14:42:36 2004 +0000 (2004-06-30)
parents 9bee11b2df02
children 399e13281a75
files tools/python/xen/xend/Args.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/Args.py	Wed Jun 30 14:32:52 2004 +0000
     1.2 +++ b/tools/python/xen/xend/Args.py	Wed Jun 30 14:42:36 2004 +0000
     1.3 @@ -1,3 +1,4 @@
     1.4 +import types
     1.5  import sxp
     1.6  
     1.7  class ArgError(StandardError):
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Jun 30 14:32:52 2004 +0000
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Jun 30 14:42:36 2004 +0000
     2.3 @@ -9,6 +9,7 @@ Author: Mike Wray <mike.wray@hpl.hp.com>
     2.4  """
     2.5  
     2.6  import string
     2.7 +import types
     2.8  import re
     2.9  import sys
    2.10  import os
    2.11 @@ -821,7 +822,7 @@ def vm_dev_vbd(vm, val, index):
    2.12      return defer
    2.13  
    2.14  def parse_pci(val):
    2.15 -    if isinstance(val, StringType):
    2.16 +    if isinstance(val, types.StringType):
    2.17          radix = 10
    2.18          if val.startswith('0x') or val.startswith('0X'):
    2.19              radix = 16