From 2f9cdc98cc0adea615cb2180481c7780eef48f97 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Sat, 27 Feb 2016 10:15:02 +0100 Subject: pep8 compliance, util.load_yaml_guess_indent --- scanner.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scanner.py') diff --git a/scanner.py b/scanner.py index 246ea69..61feb34 100644 --- a/scanner.py +++ b/scanner.py @@ -1,3 +1,5 @@ +# coding: utf-8 + from __future__ import absolute_import from __future__ import print_function @@ -759,9 +761,9 @@ class Scanner(object): # '-' character) because we want the flow context to be space # independent. ch = self.peek() - return ch not in u'\0 \t\r\n\x85\u2028\u2029-?:,[]{}#&*!|>\'\"%@`' \ - or (self.peek(1) not in u'\0 \t\r\n\x85\u2028\u2029' - and (ch == u'-' or (not self.flow_level and ch in u'?:'))) + return ch not in u'\0 \t\r\n\x85\u2028\u2029-?:,[]{}#&*!|>\'\"%@`' or \ + (self.peek(1) not in u'\0 \t\r\n\x85\u2028\u2029' and + (ch == u'-' or (not self.flow_level and ch in u'?:'))) # Scanners. -- cgit v1.2.1