We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c605e5 commit 0f5f757Copy full SHA for 0f5f757
1 file changed
Document API/tableaudocumentapi/workbook.py
@@ -115,10 +115,6 @@ def _prepare_datasources(self, xmlRoot):
115
116
@staticmethod
117
def _is_valid_file(filename):
118
- valid = 0
119
fileExtension = os.path.splitext(filename)[-1].lower()
120
- if fileExtension == ".twb":
121
- valid = 1
122
- elif fileExtension == ".tds":
123
124
- return valid
+ return fileExtension in ('.twb', '.tds')
+
0 commit comments