X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwcal%2Ftest%2Fec2.py;h=175017ad4f280e5322d278fd45c30e223a14fb88;hb=f314b4af9744068a7ed7a6a6314220c3aa857523;hp=59ad04939acc1246adcca69c35d01335357c9dbf;hpb=255ff03a528a3090ce7f46f0a63b65da3e6f9bcf;p=osm%2FSO.git diff --git a/rwcal/test/ec2.py b/rwcal/test/ec2.py index 59ad0493..175017ad 100644 --- a/rwcal/test/ec2.py +++ b/rwcal/test/ec2.py @@ -178,7 +178,7 @@ class RWEC2(object): kwds = {'subnet_id': __default_subnet__} else: kwds = {'network_interfaces': net_ifs} - print net_ifs + print(net_ifs) new_reservation = self._conn.run_instances( image_id=self._ami, @@ -220,7 +220,7 @@ class RWEC2(object): addr = "%s.%s.10%d.0/25" % (subnet_addrs_split[0], subnet_addrs_split[1], i) try: subnet = vpc_conn.create_subnet(vpc.id, addr) - except boto.exception.EC2ResponseError, e: + except boto.exception.EC2ResponseError as e: if 'InvalidSubnet.Conflict' == e.error_code: subnet = vpc_conn.get_all_subnets(filters=[('vpcId', vpc.id), ('cidrBlock', addr)])[0] else: