Skip to content

Commit 9aef6b4

Browse files
committed
refactor: Remove future and Python v2 compatibility mechanisms
1 parent defb05f commit 9aef6b4

File tree

105 files changed

+599
-1159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+599
-1159
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import os
43
import sys

examples/bot-example-flask.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
SOFTWARE.
4444
"""
4545

46-
# Use future for Python v2 and v3 compatibility
47-
from __future__ import (
48-
absolute_import,
49-
division,
50-
print_function,
51-
unicode_literals,
52-
)
53-
from builtins import *
5446

5547

5648
__author__ = "Chris Lunsford"

examples/bot-example-webpy.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
SOFTWARE.
4444
"""
4545

46-
# Use future for Python v2 and v3 compatibility
47-
from __future__ import (
48-
absolute_import,
49-
division,
50-
print_function,
51-
unicode_literals,
52-
)
53-
from builtins import *
5446

5547

5648
__author__ = "Brad Bester"

examples/local_file_upload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
SOFTWARE.
3939
"""
4040

41-
from __future__ import print_function
4241

4342
import os
4443

examples/ngrokwebhook.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
SOFTWARE.
3535
"""
3636

37-
# Use future for Python v2 and v3 compatibility
38-
from __future__ import (
39-
absolute_import,
40-
division,
41-
print_function,
42-
unicode_literals,
43-
)
44-
from builtins import *
4537

4638

4739
__author__ = "Brad Bester"

examples/people.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
SOFTWARE.
2828
"""
2929

30-
from __future__ import (
31-
absolute_import,
32-
division,
33-
print_function,
34-
unicode_literals,
35-
)
36-
from builtins import *
3730

3831

3932
__author__ = "Jose Bogarín Solano"

examples/pyramidWebexTeamsBot/pyramidWebexTeamsBot/views.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
SOFTWARE.
4444
"""
4545

46-
# Use future for Python v2 and v3 compatibility
47-
from __future__ import (
48-
absolute_import,
49-
division,
50-
print_function,
51-
unicode_literals,
52-
)
53-
from builtins import *
5446

5547

5648
__author__ = "Jose Bogarín Solano"

examples/simple.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
SOFTWARE.
3333
"""
3434

35-
from __future__ import print_function
3635
from webexpythonsdk import WebexAPI
3736

3837

generator/models/meeting_invitees.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ query_parameters:
1111
- name: meetingId
1212
description: Unique id of the meeting for which invitees are requested.
1313
optional: False
14-
type: basestring
14+
type: str
1515
- name: max
1616
description: Limit the number of meeting invitees
1717
optional: True
1818
type: int
1919
- name: hostEmail
2020
description: Email address for the meeting host (requires admin scope)
2121
optional: True
22-
type: basestring
22+
type: str
2323
- name: panelist
2424
description: Filter invitees or attendees based on their panelist status
2525
optional: True
@@ -33,7 +33,7 @@ create:
3333
- coHost
3434
- name: hostEmail
3535
description: Email address for the meeting host (requires admin scope)
36-
type: basestring
36+
type: str
3737
- name: sendEmail
3838
description: If true, send an e-mail to the invitee
3939
type: bool
@@ -46,7 +46,7 @@ update:
4646
- coHost
4747
- name: hostEmail
4848
description: Email address for the meeting host (requires admin scope)
49-
type: basestring
49+
type: str
5050
- name: sendEmail
5151
description: If true, send an e-mail to the invitee
5252
type: bool
@@ -55,19 +55,19 @@ list:
5555
properties:
5656
- name: id
5757
description: Unique id for the meeting invitee
58-
type: basestring
58+
type: str
5959
- name: email
6060
description: Email address for the meeting invitee
61-
type: basestring
61+
type: str
6262
- name: displayName
6363
description: Display name of the meeting invitee
64-
type: basestring
64+
type: str
6565
- name: coHost
6666
description: CoHost status of the invitee
6767
type: bool
6868
- name: meetingId
6969
description: Unique id for the meeting that the invitee is part of
70-
type: basestring
70+
type: str
7171
- name: panelist
7272
description: Flag to indicate if the invitee is panelist or not
7373
type: bool
@@ -76,8 +76,8 @@ additional_code: >
7676
""" Bulk insert meeting invitees
7777
7878
Args:
79-
meetingId(basestring): Id of the meeting the invitees should be added to.
80-
hostEmail(basestring): Email of the meeting host.
79+
meetingId(str): Id of the meeting the invitees should be added to.
80+
hostEmail(str): Email of the meeting host.
8181
items(list): List of invitees. Each invitee is a dict with email as the
8282
required key and displayName, coHost, sendEmail and panelist as optional
8383
properties.
@@ -92,8 +92,8 @@ additional_code: >
9292
TypeError: If the parameter types are incorrect.
9393
ApiError: If the Webex cloud returns an error.
9494
"""
95-
check_type(meetingId, basestring)
96-
check_type(hostEmail, basestring, optional=True)
95+
check_type(meetingId, str)
96+
check_type(hostEmail, str, optional=True)
9797
check_type(items, list, optional=True)
9898
9999
post_data = dict_from_items_with_values(

generator/models/meeting_registrants.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ methods:
99
url_parameters:
1010
- name: meetingId
1111
description: Unique identifier for the meeting.
12-
type: basestring
12+
type: str
1313
query_parameters:
1414
- name: max
1515
description: Limit the maximum number of registrants in the response, up to 100.
@@ -18,82 +18,82 @@ query_parameters:
1818
- name: hostEmail
1919
description: Email address for the meeting host.
2020
optional: True
21-
type: basestring
21+
type: str
2222
- name: current
2323
description: Whether or not to retrieve only the current scheduled meeting of the meeting series, i.e. the meeting ready to join or start or the upcoming meeting of the meeting series.
2424
optional: True
2525
type: bool
2626
- name: email
2727
description: Registrant's email to filter registrants.
2828
optional: True
29-
type: basestring
29+
type: str
3030
- name: registrationTimeFrom
3131
description: The time registrants register a meeting starts from the specified date and time (inclusive) in any ISO 8601 compliant format.
3232
optional: True
33-
type: basestring
33+
type: str
3434
- name: registrationTimeTo
3535
description: The time registrants register a meeting before the specified date and time (exclusive) in any ISO 8601 compliant format.
3636
optional: True
37-
type: basestring
37+
type: str
3838
list:
3939
properties:
4040
- name: registrantId
4141
description: New registrant's ID.
42-
type: basestring
42+
type: str
4343
- name: status
4444
description: New registrant's status.
45-
type: basestring
45+
type: str
4646
- name: firstName
4747
description: Registrant's first name.
48-
type: basestring
48+
type: str
4949
- name: lastName
5050
description: Registrant's last name.
51-
type: basestring
51+
type: str
5252
- name: email
5353
description: Registrant's email.
54-
type: basestring
54+
type: str
5555
- name: jobTitle
5656
description: Registrant's job title.
57-
type: basestring
57+
type: str
5858
- name: companyName
5959
description: Registrant's company.
60-
type: basestring
60+
type: str
6161
- name: address1
6262
description: Registrant's first address line.
63-
type: basestring
63+
type: str
6464
- name: address2
6565
description: Registrant's second address line.
66-
type: basestring
66+
type: str
6767
- name: city
6868
description: Registrant's city name.
69-
type: basestring
69+
type: str
7070
- name: state
7171
description: Registrant's state.
72-
type: basestring
72+
type: str
7373
- name: zipCode
7474
description: Registrant's postal code.
7575
type: int
7676
- name: countryRegion
7777
description: Registrant's country or region.
78-
type: basestring
78+
type: str
7979
- name: workPhone
8080
description: Registrant's work phone number.
81-
type: basestring
81+
type: str
8282
- name: fax
8383
description: Registrant's FAX number.
84-
type: basestring
84+
type: str
8585
- name: registrationTime
8686
description: Registrant's registration time.
87-
type: basestring
87+
type: str
8888
- name: customizedQuestions
8989
description: List of registrant's answers for customized questions,
9090
type: list
9191
- name: sourceId
9292
description: Registrant's source id.
93-
type: basestring
93+
type: str
9494
- name: registrationId
9595
description: Registrant's registration ID.
96-
type: basestring
96+
type: str
9797

9898
create:
9999
required:

generator/models/meeting_templates.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ query_parameters:
88
- name: templateType
99
description: Meeting template types (meeting, webinar)
1010
optional: True
11-
type: basestring
11+
type: str
1212
- name: locale
1313
description: Locale for the meeting template (i.e. en_US)
1414
optional: True
15-
type: basestring
15+
type: str
1616
- name: isDefault
1717
description: Flag to indicate if default or non-default meeting templates are returned
1818
optional: True
@@ -26,26 +26,26 @@ query_parameters:
2626
optional: True
2727
type: bool
2828
- name: siteUrl
29-
description: URL of the Webex site from which we are listing.
29+
description: URL of the Webex site from which we are listing.
3030
optional: True
3131
type: bool
3232
list:
3333
properties:
3434
- name: id
3535
description: Unique id for meeting template
36-
type: basestring
36+
type: str
3737
- name: name
3838
description: Name of the meeting template
39-
type: basestring
39+
type: str
4040
- name: locale
4141
description: Locale for the meeting template
42-
type: basestring
42+
type: str
4343
- name: siteUrl
4444
description: Site URL for the meeting template
45-
type: basestring
45+
type: str
4646
- name: templateType
4747
description: Type of the meeting template (meeting, webinar)
48-
type: basestring
48+
type: str
4949
- name: isDefault
5050
description: Whether or not the meeting template is a default template
5151
type: bool
@@ -54,4 +54,4 @@ list:
5454
type: bool
5555
- name: meeting
5656
description: Meeting object which is used to create a meeting by the meeting template. Please note that the meeting object should be used to create a meeting immediately.
57-
type: dict
57+
type: dict

0 commit comments

Comments
 (0)