diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/plugin.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/plugin.py index 08fb78407e..40e3a00911 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/plugin.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/plugin.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/sr.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/sr.py index 3cd7a211c8..82c77d891d 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/sr.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/sr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. @@ -6,7 +6,7 @@ import os import sys -import urlparse +import urllib.parse import xapi.storage.api.volume import plugin @@ -21,11 +21,11 @@ def create(self, dbg, uri, name, description, configuration): return def detach(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) return def ls(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return [{ "name": qr['name'], @@ -40,7 +40,7 @@ def ls(self, dbg, sr): }] def stat(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return { "sr": sr, diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/volume.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/volume.py index 448ee6dcbc..848c13bfd3 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/volume.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummy/volume.py @@ -1,11 +1,11 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. """ import uuid -import urlparse +import urllib.parse import os import sys import xapi.storage.api.volume @@ -17,7 +17,7 @@ class Implementation(xapi.storage.api.volume.Volume_skeleton): def create(self, dbg, sr, name, description, size): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) voluuid = str(uuid.uuid4()) return { "name": name, @@ -32,11 +32,11 @@ def create(self, dbg, sr, name, description, size): } def destroy(self, dbg, sr, key): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) return def stat(self, dbg, sr, key): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return { "name": qr['name'], diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/plugin.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/plugin.py index 5816f0dd21..e9ef122ca0 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/plugin.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/plugin.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/sr.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/sr.py index 6100407e91..3c649423d1 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/sr.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/sr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. @@ -6,7 +6,7 @@ import os import sys -import urlparse +import urllib.parse import xapi.storage.api.v5.volume import plugin @@ -22,11 +22,11 @@ def create(self, dbg, uuid, configuration, name, description): return configuration def detach(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) return def ls(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return [{ "name": qr['name'], @@ -42,7 +42,7 @@ def ls(self, dbg, sr): }] def stat(self, dbg, sr): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return { "sr": sr, diff --git a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/volume.py b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/volume.py index 20822dd8d7..fcf52ce388 100755 --- a/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/volume.py +++ b/ocaml/xapi-storage-script/test/volume/org.xen.xapi.storage.dummyv5/volume.py @@ -1,11 +1,11 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 """ Copyright (C) Citrix Systems, Inc. """ import uuid -import urlparse +import urllib.parse import os import sys import xapi.storage.api.v5.volume @@ -17,7 +17,7 @@ class Implementation(xapi.storage.api.v5.volume.Volume_skeleton): def create(self, dbg, sr, name, description, size, sharable): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) voluuid = str(uuid.uuid4()) return { "name": name, @@ -33,11 +33,11 @@ def create(self, dbg, sr, name, description, size, sharable): } def destroy(self, dbg, sr, key): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) return def stat(self, dbg, sr, key): - urlparse.urlparse(sr) + urllib.parse.urlparse(sr) qr = plugin.Implementation().query(dbg) return { "name": qr['name'],