Commit 20e5d123 by muzaffaryousaf

Replace doc string formatter with comment literals.

parent d2ab3f10
[pep8] [pep8]
max-line-length = 120 max-line-length = 120
ignore = E402
exclude = dependencies, scripts exclude = dependencies, scripts
language: python language: python
dist: precise
python: python:
- "2.7" - "2.7"
sudo: required sudo: required
......
...@@ -5,8 +5,8 @@ VW = VideoWorker() ...@@ -5,8 +5,8 @@ VW = VideoWorker()
VW = VideoWorker( VW = VideoWorker(
veda_id='XXXXXXXXT114-V013800', veda_id='XXXXXXXXT114-V013800',
encode_profile = 'hls', encode_profile='hls',
jobid = 'xxxxx' jobid='xxxxx'
) )
VW.run() VW.run()
...@@ -14,7 +14,7 @@ from os.path import expanduser ...@@ -14,7 +14,7 @@ from os.path import expanduser
import sys import sys
import shutil import shutil
from global_vars import * from global_vars import MULTI_UPLOAD_BARRIER
from reporting import ErrorObject from reporting import ErrorObject
from config import WorkerSetup from config import WorkerSetup
...@@ -71,14 +71,10 @@ class Deliverable(): ...@@ -71,14 +71,10 @@ class Deliverable():
).hexdigest() ).hexdigest()
if self.upload_filesize < MULTI_UPLOAD_BARRIER: if self.upload_filesize < MULTI_UPLOAD_BARRIER:
""" # Upload single part
Upload single part
"""
self.delivered = self._s3_upload() self.delivered = self._s3_upload()
else: else:
""" # Upload multipart
Upload multipart
"""
self.delivered = self._boto_multipart() self.delivered = self._boto_multipart()
if self.delivered is False: if self.delivered is False:
...@@ -157,9 +153,7 @@ class Deliverable(): ...@@ -157,9 +153,7 @@ class Deliverable():
) )
return False return False
""" # Upload and stitch parts
Upload and stitch parts
"""
mp = b.initiate_multipart_upload(self.output_file) mp = b.initiate_multipart_upload(self.output_file)
x = 1 x = 1
...@@ -180,11 +174,3 @@ class Deliverable(): ...@@ -180,11 +174,3 @@ class Deliverable():
# Clean up multipart # Clean up multipart
shutil.rmtree(os.path.join(self.workdir, self.output_file.split('.')[0])) shutil.rmtree(os.path.join(self.workdir, self.output_file.split('.')[0]))
return True return True
def main():
pass
if __name__ == '__main__':
sys.exit(main())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment