salmanmapkar commited on
Commit
efc9c18
·
1 Parent(s): 75497db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,13 +13,13 @@ cache.update()
13
  cache.open()
14
  pkg = cache[pkg_name]
15
  if pkg.is_installed:
16
- print "{pkg_name} already installed".format(pkg_name=pkg_name)
17
  else:
18
  pkg.mark_install()
19
  try:
20
  cache.commit()
21
  except Exception, arg:
22
- print >> sys.stderr, "Sorry, package installation failed [{err}]".format(err=str(arg))
23
  # from xvfbwrapper import Xvfb
24
  # vdisplay = Xvfb()
25
  # vdisplay.start()
 
13
  cache.open()
14
  pkg = cache[pkg_name]
15
  if pkg.is_installed:
16
+ print ("{pkg_name} already installed".format(pkg_name=pkg_name))
17
  else:
18
  pkg.mark_install()
19
  try:
20
  cache.commit()
21
  except Exception, arg:
22
+ print (sys.stderr, "Sorry, package installation failed [{err}]".format(err=str(arg)))
23
  # from xvfbwrapper import Xvfb
24
  # vdisplay = Xvfb()
25
  # vdisplay.start()