orca r4014 - in trunk: . src/orca
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4014 - in trunk: . src/orca
- Date: Tue, 1 Jul 2008 15:31:07 +0000 (UTC)
Author: richb
Date: Tue Jul 1 15:31:07 2008
New Revision: 4014
URL: http://svn.gnome.org/viewvc/orca?rev=4014&view=rev
Log:
* src/orca/default.py:
Added in a comment to suppress some pylint E1103 errors in the
onTextInserted() method.
Modified:
trunk/ChangeLog
trunk/src/orca/default.py
Modified: trunk/src/orca/default.py
==============================================================================
--- trunk/src/orca/default.py (original)
+++ trunk/src/orca/default.py Tue Jul 1 15:31:07 2008
@@ -3670,6 +3670,17 @@
except NotImplementedError:
return
+ # Pylint is confused and flags this and similar lines, with the
+ # following error:
+ #
+ # E1103:3673:Script.onTextInserted: Instance of 'str' has no
+ #'caretOffset' member (but some types could not be inferred)
+ #
+ # But it does, so we'll just tell pylint that we know what we
+ # are doing.
+ #
+ # pylint: disable-msg=E1103
+
offset = text.caretOffset - 1
previousOffset = text.caretOffset - 2
if (offset < 0 or previousOffset < 0):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]