Skip to content

Commit

Permalink
fcpput: Updated to Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoXe authored and NoXe committed Jul 1, 2016
1 parent 476147a commit 8c1b973
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fcp/put.py
Expand Up @@ -255,9 +255,11 @@ def main():
# grab the data
if not infile:
data = sys.stdin.read()
# Encode data as bytes.
data = data.encode('utf-8')
else:
try:
data = file(infile, "rb").read()
data = open(infile, "rb").read()
except:
n.shutdown()
usage("Failed to read input from file %s" % repr(infile))
Expand Down
2 changes: 1 addition & 1 deletion fcpput
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
import fcp
fcp.put.main()

0 comments on commit 8c1b973

Please sign in to comment.