Skip to content

Commit

Permalink
Fix #1211 -- fix Unicode args on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Apr 8, 2014
1 parent 0558918 commit 8b93406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nikola/__main__.py
Expand Up @@ -51,10 +51,10 @@

def main(args):
quiet = False
if len(args) > 0 and args[0] == 'build' and '--strict' in args:
if len(args) > 0 and args[0] == b'build' and b'--strict' in args:
LOGGER.notice('Running in strict mode')
STRICT_HANDLER.push_application()
if len(args) > 0 and args[0] == 'build' and '-q' in args or '--quiet' in args:
if len(args) > 0 and args[0] == b'build' and b'-q' in args or b'--quiet' in args:
nullhandler = NullHandler()
nullhandler.push_application()
quiet = True
Expand Down Expand Up @@ -95,7 +95,7 @@ def main(args):

invariant = False

if len(args) > 0 and args[0] == 'build' and '--invariant' in args:
if len(args) > 0 and args[0] == b'build' and b'--invariant' in args:
try:
import freezegun
freeze = freezegun.freeze_time("2014-01-01")
Expand Down

0 comments on commit 8b93406

Please sign in to comment.