old_contents: """
  This module counts the available updates using yaourt.
  By default it will only count aur packages.
  If you want to count both pacman and aur packages set the variable
  count_only_aur = False
  """
  import re
  from i3pystatus.core.command import run_through_shell
  from i3pystatus.updates import Backend
  
  
  class Yaourt(Backend):
      def __init__(self, aur_only = True):
          self.aur_only = aur_only
      
      @property
      
      def updates(self):
          command = ["yaourt", "-Qua"]
          checkupdates = run_through_shell(command)
          if(self.aur_only):
              return len( re.findall("^aur/",  checkupdates.out, flags=re.M) )
          return checkupdates.out.count("\n")
  
  Backend = Yaourt
  
new_contents: """
  This module counts the available updates using yaourt.
  By default it will only count aur packages.
  If you want to count both pacman and aur packages set the variable
  count_only_aur = False
  """
  import re
  from i3pystatus.core.command import run_through_shell
  from i3pystatus.updates import Backend
  
  
  class Yaourt(Backend):
      def __init__(self, aur_only=True):
          self.aur_only = aur_only
  
      @property
      def updates(self):
          command = ["yaourt", "-Qua"]
          checkupdates = run_through_shell(command)
          if(self.aur_only):
              return len(re.findall("^aur/", checkupdates.out, flags=re.M))
          return checkupdates.out.count("\n")
  
  Backend = Yaourt
  
subject: Fix for Travis CI