Skip to content

Commit

Permalink
Fix for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Jul 11, 2019
1 parent 3b1efc9 commit c132ee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xirvik/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def __call__(self, parser, namespace, values, option_string=None):
return

username = environ['USER']
raise argparse.ArgumentTypeError(f'{prospective_dir} is not a '
'readable directory (checking as user'
f' {username})')
msg = '{} is not a readable directory (checking as user {})'.format(
prospective_dir, username)
raise argparse.ArgumentTypeError(msg)


class ReadableDirectoryListAction(argparse.Action):
Expand Down

0 comments on commit c132ee2

Please sign in to comment.