summaryrefslogtreecommitdiff
path: root/alot/addressbook/__init__.py
Commit message (Collapse)AuthorAge
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* remove old new-style classes syntaxPatrick Totzke2019-05-27
| | | | | | Python3 only supports "new-style" classes (those extending object), and we don't need to explicitly inherit from this root class any more. See http://pylint-messages.wikidot.com/messages:c1001
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* Allow regex special characters in tagstrings.Julian Mehne2017-12-02
| | | | | | | | | | | | | | | Fixes the following crashes: 1. tag completion with regex special chars :search tag:[<tab> 2. Changing tag representation of an (existing) tag with regex special chars: [tags] [[my**tag]] normal = '','', 'white','light red', 'white','#d66' 3. Contact completion with regex special chars and no external command: To:**foo<tab>
* Exclude two methods from coverage reportLucas Hoffmann2017-07-17
| | | | | | | One is an abstract method anyways and the other one is trivial. It just calls two other functions that are already covered by tests. This results in 100% test coverage for alot/addressbook/*.
* Compile regex outside of for loopLucas Hoffmann2017-07-06
|
* Remove broad exceptLucas Hoffmann2017-07-06
| | | | | The protected code only calls re.match and list.append so it should never fail (and if it still fails it should not be silenced).
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* Use abc module to signal abstract base classesDylan Baker2016-12-21
| | | | | | | | | | | | | The Completer class is abastract, and it's complete method is also abstract. Using ABCMeta achieve two thing, first it will cause an error if a developer doesn't overwrite the method in a subclass. And second that it tells the static analysis tools to ignore the unused arguments in the signature, since this is the definition of a signature, not an actual function. By the same logic addressbook.AddressBook, and account.Account have been extended to use ABCMeta as their metaclass and have had their abstract methods decorated with the abstract method attribute.
* Fix docstring for alot.addressbook.AddressBook.Lucas Hoffmann2016-01-25
| | | | | The name of the referenced class was changed in 637b679003b353d2630fed8ca942f3ab522e68b5.
* refactor addressbook codePatrick Totzke2015-04-15