Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed Oct 24, 2013
1 parent e3dd950 commit 8963416
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions dogtail/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ def log(self, entry):
value = value[0]
entry = str(key) + ": " + str(value)
else:
print("Method argument requires a 1 {key: value} dict." +
" Supplied argument not one {key: value}")
raise ValueError(entry)
print(
"Method argument requires a 1 {key: value} dict. Supplied argument not one {key: value}")

Logger.log(self, self.stamper.entryStamp() + " " + entry,
force=True)
Expand Down
2 changes: 1 addition & 1 deletion dogtail/predicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def describeSearchResult(self):

def makeScriptMethodCall(self, isRecursive):
if self.label:
args = "label='%s'" % self.label
args = "label=%s" % self.label
else:
args = ""
if self.name:
Expand Down
2 changes: 1 addition & 1 deletion dogtail/procedural.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __getattr__(self, name):
def __setattr__(self, name, value):
# Fold all the Node's AT-SPI properties into the Focus object.
if name == 'node':
self.__class__.__dict__[name] = value
setattr(self.__class__, name, value)
else:
try:
setattr(self.node, name, value)
Expand Down
28 changes: 14 additions & 14 deletions sniff/sniff.desktop
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[Desktop Entry]
Encoding = UTF - 8
Name = AT - SPI Browser
Name[en_CA] = AT - SPI Browser
Name[en_GB] = AT - SPI Browser
Comment = Browse your Assistive Technology - enabled desktop
Comment[en_CA] = Browse your Assistive Technology - enabled desktop
Comment[en_GB] = Browse your Assistive Technology - enabled desktop
Exec = sniff
Terminal = false
Type = Application
Icon = dogtail - head
StartupNotify = true
Categories = Application
Development
Encoding=UTF-8
Name=AT-SPI Browser
Name[en_CA]=AT-SPI Browser
Name[en_GB]=AT-SPI Browser
Comment=Browse your Assistive Technology-enabled desktop
Comment[en_CA]=Browse your Assistive Technology-enabled desktop
Comment[en_GB]=Browse your Assistive Technology-enabled desktop
Exec=sniff
Terminal=false
Type=Application
Icon=dogtail-head
StartupNotify=true
Categories=Application;Development;

0 comments on commit 8963416

Please sign in to comment.