mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Fix more imports
I'll deuglify the code in a bit dont worry
This commit is contained in:
parent
21cb103cba
commit
e79b9f07db
@ -2,8 +2,6 @@ import datetime
|
||||
import os.path
|
||||
import textwrap
|
||||
|
||||
import changelog
|
||||
import version
|
||||
import yaclog.changelog
|
||||
|
||||
log_segments = [
|
||||
@ -50,7 +48,7 @@ log_text = '\n\n'.join(log_segments)
|
||||
log = yaclog.Changelog()
|
||||
log.header = '# Changelog\n\nThis changelog is for testing the parser, and has many things in it that might trip it up.'
|
||||
log.links = {'id': 'http://www.koalastothemax.com'}
|
||||
log.versions = [changelog.VersionEntry(), changelog.VersionEntry(), changelog.VersionEntry()]
|
||||
log.versions = [yaclog.changelog.VersionEntry(), yaclog.changelog.VersionEntry(), yaclog.changelog.VersionEntry()]
|
||||
|
||||
log.versions[0].name = '[Tests]'
|
||||
log.versions[0].sections = {
|
||||
|
@ -19,8 +19,8 @@ import os.path
|
||||
import datetime
|
||||
import git
|
||||
|
||||
import changelog
|
||||
import yaclog.version
|
||||
import yaclog.changelog
|
||||
from yaclog import Changelog
|
||||
|
||||
|
||||
@ -143,7 +143,7 @@ def entry(obj: Changelog, bullets, paragraphs, section_name, version_name):
|
||||
else:
|
||||
matches = [v for v in obj.versions if v.name.lower() == 'unreleased']
|
||||
if len(matches) == 0:
|
||||
version = changelog.VersionEntry()
|
||||
version = yaclog.changelog.VersionEntry()
|
||||
obj.versions.insert(0, version)
|
||||
else:
|
||||
version = matches[0]
|
||||
|
Loading…
Reference in New Issue
Block a user