pep8: Move to third_party/.
[Samba.git] / third_party / pep8 / testsuite / utf-8.py
blob2cee57942f8d765f54d8e14edbbbbc73ef790760
1 # -*- coding: utf-8 -*-
4 class Rectangle(Blob):
6 def __init__(self, width, height,
7 color='black', emphasis=None, highlight=0):
8 if width == 0 and height == 0 and \
9 color == 'red' and emphasis == 'strong' or \
10 highlight > 100:
11 raise ValueError("sorry, you lose")
12 if width == 0 and height == 0 and (color == 'red' or
13 emphasis is None):
14 raise ValueError("I don't think so -- values are %s, %s" %
15 (width, height))
16 Blob.__init__(self, width, height,
17 color, emphasis, highlight)
20 # Some random text with multi-byte characters (utf-8 encoded)
22 # Εδώ μάτσο κειμένων τη, τρόπο πιθανό διευθυντές ώρα μη. Νέων απλό παράγει ροή
23 # κι, το επί δεδομένη καθορίζουν. Πάντως ζητήσεις περιβάλλοντος ένα με, τη
24 # ξέχασε αρπάζεις φαινόμενο όλη. Τρέξει εσφαλμένη χρησιμοποίησέ νέα τι. Θα όρο
25 # πετάνε φακέλους, άρα με διακοπής λαμβάνουν εφαμοργής. Λες κι μειώσει
26 # καθυστερεί.
28 # 79 narrow chars
29 # 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 [79]
31 # 78 narrow chars (Na) + 1 wide char (W)
32 # 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8情
34 # 3 narrow chars (Na) + 40 wide chars (W)
35 # 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
37 # 3 narrow chars (Na) + 76 wide chars (W)
38 # 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
41 #: E501
42 # 80 narrow chars (Na)
43 # 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 [80]
45 #: E501
46 # 78 narrow chars (Na) + 2 wide char (W)
47 # 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8情情
49 #: E501
50 # 3 narrow chars (Na) + 77 wide chars (W)
51 # 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情