Browse Source

Updated project URL in setup.py

Aaron Gokaslan 9 years ago
parent
commit
c39db7657d
2 changed files with 3 additions and 2 deletions
  1. 1 1
      setup.py
  2. 2 1
      youtube_upload/lib.py

+ 1 - 1
setup.py

@@ -8,7 +8,7 @@ setup_kwargs = {
     "description": "Upload videos to Youtube",
     "description": "Upload videos to Youtube",
     "author": "Arnau Sanchez",
     "author": "Arnau Sanchez",
     "author_email": "tokland@gmail.com",
     "author_email": "tokland@gmail.com",
-    "url": "http://code.google.com/p/youtube-upload/",
+    "url": "https://github.com/tokland/youtube-upload",
     "packages": ["youtube_upload/", "youtube_upload/auth"],
     "packages": ["youtube_upload/", "youtube_upload/auth"],
     "data_files": [("share/youtube_upload", ['client_secrets.json'])],
     "data_files": [("share/youtube_upload", ['client_secrets.json'])],
     "scripts": ["bin/youtube-upload"],
     "scripts": ["bin/youtube-upload"],

+ 2 - 1
youtube_upload/lib.py

@@ -37,7 +37,8 @@ def debug(obj, fd=sys.stderr):
     #Python 3 handling workaround
     #Python 3 handling workaround
     if sys.version_info >= (3, 0) and isinstance(string, bytes):
     if sys.version_info >= (3, 0) and isinstance(string, bytes):
         fd.buffer.write(string + "\n") #We write the encoding directly
         fd.buffer.write(string + "\n") #We write the encoding directly
-    fd.write(string + "\n")
+    else:
+        fd.write(string + "\n")
 
 
 def catch_exceptions(exit_codes, fun, *args, **kwargs):
 def catch_exceptions(exit_codes, fun, *args, **kwargs):
     """
     """