=== modified file 'scripts/update-desktop-file-unity-webapps-yandexnews.py'
--- scripts/update-desktop-file-unity-webapps-yandexnews.py	2013-09-24 16:16:48 +0000
+++ scripts/update-desktop-file-unity-webapps-yandexnews.py	2015-04-15 03:50:49 +0000
@@ -1,14 +1,11 @@
-#!/usr/bin/python
-from gi.repository import Gio
+#!/usr/bin/python3
+from gi.repository import GLib
 import os
-import glib
 import glob
-import re
-
 APP_ID = 'YandexNewsnewsyandexru'
 
 def get_local_applications_path():
-    return os.path.join(glib.get_user_data_dir(), 'applications')
+    return os.path.join(GLib.get_user_data_dir(), 'applications')
 
 def update_desktop_file_startupwmclass():
     local_applications_path = get_local_applications_path()
@@ -26,9 +23,9 @@
             start_idx += len('[Desktop Entry]')
             updated_desktop_file_content = desktop_file_content[:start_idx] + '\nStartupWMClass={0}'.format(APP_ID) + desktop_file_content[start_idx:]
             open(desktop_filename, "w+").write(updated_desktop_file_content)
-    except Exception, e:
-        print 'Error while upgrading the desktop file: ', str(e)
+    except Exception as e:
+        print('Error while upgrading the desktop file: ', str(e))
 
 if __name__ == "__main__":
     update_desktop_file_startupwmclass()
-    
\ No newline at end of file
+    

