Skip to content

Commit

Permalink
Check and fix linting errors using flake8 locally
Browse files Browse the repository at this point in the history
  • Loading branch information
timeisapear committed Sep 1, 2021
1 parent 1aae7ba commit be8f856
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyinfra/operations/windows_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@

import ntpath
import os
from datetime import timedelta
import sys
import traceback
from datetime import timedelta


import six

from jinja2 import TemplateRuntimeError, TemplateSyntaxError, UndefinedError

from pyinfra import logger
from pyinfra.api import (
FileUploadCommand,
Expand All @@ -21,9 +24,6 @@
)
from pyinfra.api.util import get_file_sha1, get_template

from jinja2 import TemplateRuntimeError, TemplateSyntaxError, UndefinedError
from os import makedirs, path as os_path, walk

from .util.compat import fspath
from .util.files import ensure_mode_int

Expand Down Expand Up @@ -410,7 +410,7 @@ def template(
'''

if state.deploy_dir:
src = os_path.join(state.deploy_dir, src)
src = os.path.join(state.deploy_dir, src)

# Ensure host/state/inventory are available inside templates (if not set)
data.setdefault('host', host)
Expand Down

0 comments on commit be8f856

Please sign in to comment.