Skip to content
Permalink
Browse files
Remove unused variable
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 24, 2017
1 parent 62b7ff2 commit c9713420a7628d764c72fdc540bcd6def779c26e
Showing with 1 addition and 7 deletions.
  1. +1 −5 CHANGES.txt
  2. +0 −2 nikola/post.py
@@ -1,11 +1,6 @@
New in master
=============

Deletions
---------

* Removed old 7-line metadata format (Issue #2839)

Features
--------

@@ -34,6 +29,7 @@ Removed features
* Drop annotations support (annotateit.org closed down in March 2017)
* Remove taxonomy option ``also_create_classifications_from_other_languages``
(Issue #2785)
* Removed old 7-line metadata format (Issue #2839)

New in v7.8.8
=============
@@ -80,7 +80,6 @@
__all__ = ('Post',)

TEASER_REGEXP = re.compile('<!--\s*TEASER_END(:(.+))?\s*-->', re.IGNORECASE)
_UPGRADE_METADATA_ADVERTISED = False


class Post(object):
@@ -1051,7 +1050,6 @@ def _get_metadata_from_file(meta_data, config=None):

def get_metadata_from_meta_file(path, config=None, lang=None):
"""Take a post path, and gets data from a matching .meta file."""
global _UPGRADE_METADATA_ADVERTISED
meta_path = os.path.splitext(path)[0] + '.meta'
if lang and config:
meta_path = get_translation_candidate(config, meta_path, lang)

0 comments on commit c971342

Please sign in to comment.