Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
bug fixed and convert \r\n to \n
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTolstoyevski committed Apr 22, 2020
1 parent eca5c52 commit aa5b956
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from nvdaaddonupdater import *
from .nvdaaddonupdater import *
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def call_after_and_block(func, *args, **kwargs):
def wrapper():
try:
event.result = func(*args, **kwargs)
except Exception, e:
except Exception as e:
event.exception = e
finally:
event.set()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Automatically update an NVDA add on.
# By Bryan Smart ([email protected])

import os
import threading
import urllib
import tempfile

import gui

import wx

from callafter import *
import os, threading, tempfile, gui, wx
import urllib.request, urllib.parse, urllib.error
from .callafter import *

class NVDAAddOnUpdater (object):

Expand All @@ -26,7 +16,7 @@ def __init__ (self, add_on_name, update_url, current_version):
def check_update(self):
# Retrieve current version number.
try:
f = urllib.urlopen(self._update_url + '/version')
f = urllib.request.urlopen(self._update_url + '/version')
except:
# If Internet unavailable, silently fail.
return
Expand Down Expand Up @@ -55,7 +45,7 @@ def check_update(self):
def force_update(self):
# Open connection to download update.
try:
remote_file = urllib.urlopen(self._update_url + '/install')
remote_file = urllib.request.urlopen(self._update_url + '/install')
except:
gui.messageBox("Unable to connect to update server!", style=wx.ICON_ERROR)
return
Expand Down
7 changes: 1 addition & 6 deletions addonSource/globalPlugins/Unspoken_docHandler.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# -*- coding: UTF-8 -*-

# docHandler: module for managing addons documentation
# See: http://community.nvda-project.org/ticket/2694

import os
import languageHandler
import addonHandler
Expand Down Expand Up @@ -55,7 +50,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
def __init__(self):
super(globalPluginHandler.GlobalPlugin, self).__init__()
self.help = gui.mainFrame.sysTrayIcon.helpMenu
self.helpItem = self.help.Append(wx.ID_ANY, u"{summary} {version}".format(summary=_addonSummary, version=_addonVersion), _addonName)
self.helpItem = self.help.Append(wx.ID_ANY, "{summary} {version}".format(summary=_addonSummary, version=_addonVersion), _addonName)
gui.mainFrame.sysTrayIcon.Bind(wx.EVT_MENU, self.onHelp, self.helpItem)

def onHelp(self, evt):
Expand Down
2 changes: 1 addition & 1 deletion addonSource/manifest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ summary = "Unspoken 3D Audio"
description = """Adds 3D audio for controls and replaces control messages."""
author = "Camlorn <[email protected]>, Bryan Smart, SeanTolstoyevski <[email protected]>"
url = None
version = 0.1b
version = 0.2b
minimumNVDAVersion = 2019.3
lastTestedNVDAVersion = 2020.1

0 comments on commit aa5b956

Please sign in to comment.