diff --git a/doc/user-guide/section_sdk_neutron.xml b/doc/user-guide/section_sdk_neutron.xml index 144e384d49..3c9cbc9b25 100644 --- a/doc/user-guide/section_sdk_neutron.xml +++ b/doc/user-guide/section_sdk_neutron.xml @@ -98,8 +98,6 @@ def print_values_server(val, server_id, type): Create network The following program creates a network: #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials @@ -127,8 +125,6 @@ finally: List networks The following program lists networks: #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials from utils import print_values @@ -146,8 +142,6 @@ print_values(netw, 'networks') Create ports The following program creates a port: #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client import novaclient.v1_1.client as nvclient from credentials import get_credentials @@ -188,8 +182,6 @@ if server_detail != None: List ports The following program lists ports: #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials from utils import print_values @@ -210,8 +202,6 @@ print_values(ports, 'ports') The following program lists the ports for a server: #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client import novaclient.v1_1.client as nvclient from credentials import get_credentials @@ -298,7 +288,6 @@ print("Execution Completed") Create router: complete code listing #!/usr/bin/env python -# -*- coding: utf-8 -*- from neutronclient.v2_0 import client import novaclient.v1_1.client as nvclient from credentials import get_credentials @@ -378,7 +367,6 @@ print("Execution completed") Delete network: complete code listing #!/usr/bin/env python -# -*- coding: utf-8 -*- from neutronclient.v2_0 import client from credentials import get_credentials @@ -443,8 +431,6 @@ print("Execution completed") List routers: complete code listing #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials from utils import print_values @@ -491,8 +477,6 @@ print(sg) List security groups: complete code listing #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials from utils import print_values @@ -542,8 +526,6 @@ print(subnets) List subnets: complete code listing #!/usr/bin/env python -# -*- coding: utf-8 -*- - from neutronclient.v2_0 import client from credentials import get_credentials from utils import print_values diff --git a/doc/user-guide/section_sdk_nova.xml b/doc/user-guide/section_sdk_nova.xml index 3691d211de..34776fdfaf 100644 --- a/doc/user-guide/section_sdk_nova.xml +++ b/doc/user-guide/section_sdk_nova.xml @@ -65,7 +65,6 @@ from novaclient.client import Client List servers code listing #!/usr/bin/env python - from credentials import get_nova_credentials_v2 from novaclient.client import Client @@ -129,7 +128,6 @@ print(nova_client.servers.list) Create server code listing #!/usr/bin/env python - import time from credentials import get_nova_credentials_v2 from novaclient.client import Client @@ -219,7 +217,6 @@ for s in servers_list: Delete server code listing #!/usr/bin/env python - from credentials import get_nova_credentials_v2 from novaclient.client import Client diff --git a/tools/generatepot b/tools/generatepot index 442cf462c5..a69b9169bf 100755 --- a/tools/generatepot +++ b/tools/generatepot @@ -1,6 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- - ''' Created on 2012-7-3