diff options
| author | 2014-02-28 08:49:41 -0300 | |
|---|---|---|
| committer | 2014-02-28 08:49:41 -0300 | |
| commit | 0f1e24f7888ba16fe5629c57fd00f0deacb63e5e (patch) | |
| tree | 7153a3a11b766f375b1d1c0a7adc599e0a9f9c55 /nikola/plugins/compile/bbcode.py | |
| parent | 04fc43563d3d5d4218004690b5e14c19c67bdcbc (diff) | |
| parent | 2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff) | |
Merge tag 'upstream/6.3.0'
Upstream version 6.3.0
Diffstat (limited to 'nikola/plugins/compile/bbcode.py')
| -rw-r--r-- | nikola/plugins/compile/bbcode.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nikola/plugins/compile/bbcode.py b/nikola/plugins/compile/bbcode.py index e998417..5345be3 100644 --- a/nikola/plugins/compile/bbcode.py +++ b/nikola/plugins/compile/bbcode.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright © 2012-2013 Roberto Alsina and others. +# Copyright © 2012-2014 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated @@ -37,6 +37,10 @@ except ImportError: from nikola.plugin_categories import PageCompiler from nikola.utils import makedirs, req_missing +try: + from collections import OrderedDict +except ImportError: + OrderedDict = None # NOQA class CompileBbcode(PageCompiler): @@ -63,7 +67,10 @@ class CompileBbcode(PageCompiler): out_file.write(output) def create_post(self, path, onefile=False, **kw): - metadata = {} + if OrderedDict is not None: + metadata = OrderedDict() + else: + metadata = {} metadata.update(self.default_metadata) metadata.update(kw) makedirs(os.path.dirname(path)) |
