Browse Source

[pylint] Correct import order

pull/183/head
Oliverpool 9 years ago
parent
commit
2d6298c301
  1. 3
      patacrep/content/__init__.py
  2. 3
      patacrep/content/song.py
  3. 2
      patacrep/songbook/__main__.py
  4. 5
      patacrep/songs/chordpro/__init__.py
  5. 3
      patacrep/songs/chordpro/syntax.py

3
patacrep/content/__init__.py

@ -66,12 +66,13 @@ More documentation in the docstring of Content.
""" """
import glob import glob
import jinja2
import logging import logging
import os import os
import re import re
import sys import sys
import jinja2
from patacrep import files from patacrep import files
from patacrep.errors import SongbookError from patacrep.errors import SongbookError

3
patacrep/content/song.py

@ -1,11 +1,12 @@
"""Plugin to include songs to the songbook.""" """Plugin to include songs to the songbook."""
import glob import glob
import jinja2
import logging import logging
import os import os
import textwrap import textwrap
import jinja2
from patacrep.content import process_content, ContentError, Content from patacrep.content import process_content, ContentError, Content
from patacrep import files, errors from patacrep import files, errors

2
patacrep/songbook/__main__.py

@ -1,12 +1,12 @@
"""Command line tool to compile songbooks using the songbook library.""" """Command line tool to compile songbooks using the songbook library."""
import argparse import argparse
import yaml
import locale import locale
import logging import logging
import os.path import os.path
import textwrap import textwrap
import sys import sys
import yaml
from patacrep.build import SongbookBuilder, DEFAULT_STEPS from patacrep.build import SongbookBuilder, DEFAULT_STEPS
from patacrep.utils import yesno from patacrep.utils import yesno

5
patacrep/songs/chordpro/__init__.py

@ -1,11 +1,12 @@
"""Chordpro parser""" """Chordpro parser"""
from jinja2 import Environment, FileSystemLoader, contextfunction, ChoiceLoader
import jinja2
import logging import logging
import operator import operator
import os import os
from jinja2 import Environment, FileSystemLoader, contextfunction, ChoiceLoader
import jinja2
from patacrep import encoding, files, pkg_datapath from patacrep import encoding, files, pkg_datapath
from patacrep.songs import Song from patacrep.songs import Song
from patacrep.songs.chordpro.syntax import parse_song from patacrep.songs.chordpro.syntax import parse_song

3
patacrep/songs/chordpro/syntax.py

@ -1,9 +1,10 @@
"""ChordPro parser""" """ChordPro parser"""
import logging import logging
import ply.yacc as yacc
import re import re
import ply.yacc as yacc
from patacrep.songs.syntax import Parser from patacrep.songs.syntax import Parser
from patacrep.songs.chordpro import ast from patacrep.songs.chordpro import ast
from patacrep.songs.chordpro.lexer import tokens, ChordProLexer from patacrep.songs.chordpro.lexer import tokens, ChordProLexer

Loading…
Cancel
Save