Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 013ee83

Browse filesBrowse files
committed
Changing how as_test is set
1 parent 8036f3a commit 013ee83
Copy full SHA for 013ee83

File tree

1 file changed

+1
-3
lines changed
Filter options

1 file changed

+1
-3
lines changed

‎zencoder/core.py

Copy file name to clipboardExpand all lines: zencoder/core.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ def create(self, input, outputs=None, options=None):
237237
@param outputs: a list of output dictionaries
238238
@param options: a dictionary of job options
239239
"""
240-
as_test = 0
241-
if (self.test):
242-
as_test = 1
240+
as_test = int(self.test)
243241

244242
data = {"api_key": self.api_key, "input": input, "test": as_test}
245243
if outputs:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.