Skip to content

Commit

Permalink
Fixed syntax errors on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 5, 2013
1 parent 0a32f9e commit ecc1516
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions qtfaststart/command.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/usr/bin/env python

"""
Command line script for convenience. If this is in your path, you should
be able to run it directly like this::
qtfaststart
"""
from __future__ import print_function

import logging
import os
Expand Down Expand Up @@ -55,14 +49,14 @@ def run():
# an empty string
atom = "----"

print atom, "(" + str(size) + " bytes)"
print(atom, "(" + str(size) + " bytes)")

raise SystemExit

if len(args) == 1:
# Replace the original file!
if options.sample:
print "Please pass an output filename when used with --sample!"
print("Please pass an output filename when used with --sample!")
raise SystemExit(1)

tmp, outfile = tempfile.mkstemp()
Expand Down

0 comments on commit ecc1516

Please sign in to comment.