Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #7 from pneff/windows

Use subprocess `check_output` to run git
  • Loading branch information...
2 parents ab222a4 + 46838bb commit 74fc434a41cb1ea12bd7fd6111a8bc1131484864 @kennethreitz committed
Showing with 9 additions and 2 deletions.
  1. +9 −2 ghsync/
11 ghsync/
@@ -23,14 +23,21 @@
import os
import sys
-from commands import getoutput as cmd
from clint import args
from clint.textui import puts, colored, indent
import requests
import json
from github2.client import Github
+ # check_output is new in 2.7.
+ from subprocess import check_output
+ def cmd(command):
+ return check_output(command, shell=True).strip()
+except ImportError:
+ # commands is deprecated and doesn't work on Windows
+ from commands import getoutput as cmd
__author__ = 'Kenneth Reitz'
__license__ = 'ISC'

0 comments on commit 74fc434

Please sign in to comment.
Something went wrong with that request. Please try again.