Update files, functions and code to work with python3

This commit is contained in:
LecygneNoir 2020-01-11 13:27:48 +01:00
parent 8b26f0ee53
commit fa633ee5bb
4 changed files with 32 additions and 30 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python
# coding: utf-8
"""
@ -170,17 +170,17 @@ if __name__ == '__main__':
schema = Schema({
'--file': And(str, validateVideo, error='file is not supported, please use mp4'),
Optional('--name'): Or(None, And(
basestring,
str,
lambda x: not x.isdigit(),
error="The video name should be a string")
),
Optional('--description'): Or(None, And(
basestring,
str,
lambda x: not x.isdigit(),
error="The video description should be a string")
),
Optional('--tags'): Or(None, And(
basestring,
str,
lambda x: not x.isdigit(),
error="Tags should be a string")
),