Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Nov 11, 2014
1 parent 9cf2fc3 commit 5c0cc22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/brew-file
Expand Up @@ -169,6 +169,7 @@ class BrewFile:
yes = ["yes","y", ""]
no = ["no","n"]

# pragma: no cover
yn = raw_input(question + " [y/n]: ").lower()
while True:
if yn in yes:
Expand Down Expand Up @@ -240,15 +241,15 @@ class BrewFile:
exist_repo = True
try:
check = urllib2.urlopen(url)
except urllib2.HTTPError, e:
except urllib2.HTTPError, e: # pragma: no cover
exist_repo = False

# Clone if exists
if exist_repo:
self.clone_repo()
return

# Create new repository
# Create new repository # pragma: no cover
print "GitHub repository: " + user_name + "/" + repo_name + " doesn't exist."
ans = self.ask_yn("do you want to create the repository?")
if not ans:
Expand Down Expand Up @@ -1006,7 +1007,7 @@ class BrewFile:
+ " #" + app_path.replace(os.environ["HOME"], "~"))
out.writeln("")

for t in filter(lambda x: x != self.opt["cask_repo"] and x != "", taps):
for t in filter(lambda x: x != self.opt["cask_repo"] and x != "", taps): # pragma: no cover
out.writeln("# Casks in " + t)
out.writeln("tap " + t)
out.writeln("")
Expand Down

0 comments on commit 5c0cc22

Please sign in to comment.