jrnl/jrnl/plugins/exporter/short.py
Jonathan Wren 6c191f2a38 Remove __init__.py files
Since we're implementing a plugin system that relies on implicit
namespacing, we should remove these files so that they don't confuse and
muddle our virtual envs (like the ones we use to run tests).

Also, they're not longer needed as of Python 3.3.

PEP 420 says:
Allowing implicit namespace packages means that the requirement to
provide an __init__.py file can be dropped completely...
2021-06-26 14:28:55 -07:00

20 lines
482 B
Python

#!/usr/bin/env python
# encoding: utf-8
# Copyright (C) 2012-2021 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.plugins.base import BaseExporter
from jrnl.__version__ import __version__
class Exporter(BaseExporter):
"""Short export -- i.e. single line date and title"""
names = ["short"]
extension = "txt"
version = __version__
@classmethod
def export_journal(cls, journal):
return journal.pprint(short=True)