Skip to content

Commit 7d3cb1c

Browse files
committed
Fix python linting
1 parent 3e28af6 commit 7d3cb1c

File tree

22 files changed

+17
-28
lines changed

22 files changed

+17
-28
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console
@@ -11,8 +10,8 @@
1110
fleet_service = client.preview.deployed_devices.fleets(fleet_sid)
1211

1312
was_deleted = fleet_service\
14-
.certificates('CYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')\
15-
.fetch()\
16-
.delete()
13+
.certificates('CYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')\
14+
.fetch()\
15+
.delete()
1716

1817
print(was_deleted.sid)

deployed-devices/rest/certificates/list-certificates/list-certificates.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/certificates/retrieve-certificate/retrieve-certificate.6.x.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console
@@ -11,7 +10,7 @@
1110
fleet_service = client.preview.deployed_devices.fleets(fleet_sid)
1211

1312
certificate = fleet_service\
14-
.certificates('CYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')\
15-
.fetch()
13+
.certificates('CYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')\
14+
.fetch()
1615

1716
print(certificate.sid)

deployed-devices/rest/certificates/update-certificate/update-certificate.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/deployments/delete-deployment/delete-deployment.6.x.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
client = Client(account_sid, auth_token)
88

99
deployment_sid = 'DLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
10-
deleted = client.preview.deployed_devices.deployments(sid=deployment_sid).delete()
10+
deleted = client.preview\
11+
.deployed_devices\
12+
.deployments(sid=deployment_sid)\
13+
.delete()
1114

1215
print(deleted)

deployed-devices/rest/deployments/retrieve-deployment/retrieve-deployment.6.x.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
client = Client(account_sid, auth_token)
88

99
deployment_sid = 'FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
10-
deployment = client.preview.deployed_devices.deployments(sid=deployment_sid).fetch()
10+
deployment = client.preview\
11+
.deployed_devices\
12+
.deployments(sid=deployment_sid)\
13+
.fetch()
1114

1215
print(deployment.friendly_name)

deployed-devices/rest/deployments/update-deployment/update-deployment.6.x.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
client = Client(account_sid, auth_token)
88

99
deployment_sid = 'DLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
10-
deployment = client.preview.deployed_devices.deployments(sid=deployment_sid).update(
11-
friendly_name='My New Device Deployment')
10+
deployment = client.preview\
11+
.deployed_devices\
12+
.deployments(sid=deployment_sid)\
13+
.update(friendly_name='My New Device Deployment')
1214

1315
print(deployment.friendly_name)

deployed-devices/rest/devices/create-device/create-device.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/devices/delete-device/delete-device.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/devices/list-devices/list-devices.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/devices/retrieve-device/retrieve-device.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/devices/update-device/update-device.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from Twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/fleets/create-fleet/create-fleet.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/fleets/delete-fleet/delete-fleet.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/fleets/list-fleets/list-fleets.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/fleets/retrieve-fleet/retrieve-fleet.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/fleets/update-fleet/update-fleet.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/keys/create-key/create-key.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/keys/delete-key/delete-key.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/keys/list-keys/list-key.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/keys/retrieve-key/retrieve-key.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

deployed-devices/rest/keys/update-key/update-key.6.x.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Get the Node helper library from https://twilio.com/docs/libraries/python
2-
from pathlib import Path
32
from twilio.rest import Client
43

54
# Get your Account SID and Auth Token from https://twilio.com/console

0 commit comments

Comments
 (0)