| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01c77c6 commit b053cd8
36 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ or_test: and_test ('or' and_test)* | |||
| 90 | 90 | and_test: not_test ('and' not_test)* | |
| 91 | 91 | not_test: 'not' not_test | comparison | |
| 92 | 92 | comparison: expr (comp_op expr)* | |
| 93 | - comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' | ||
| 93 | + comp_op: '<'|'>'|'=='|'>='|'<='|'!='|'in'|'not' 'in'|'is'|'is' 'not' | ||
| 94 | 94 | expr: xor_expr ('|' xor_expr)* | |
| 95 | 95 | xor_expr: and_expr ('^' and_expr)* | |
| 96 | 96 | and_expr: shift_expr ('&' shift_expr)* | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -453,7 +453,7 @@ def Modify(self, table, conditions={}, mappings={}): | |||
| 453 | 453 | # error | |
| 454 | 454 | dataitem = None | |
| 455 | 455 | dataitem = mappings[column](dataitem) | |
| 456 | - if dataitem <> None: | ||
| 456 | + if dataitem != None: | ||
| 457 | 457 | self.db.put( | |
| 458 | 458 | _data_key(table, column, rowid), | |
| 459 | 459 | dataitem, txn=txn) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,7 +120,7 @@ def do_bthash_test(self, factory, what): | |||
| 120 | 120 | try: | |
| 121 | 121 | rec = f.next() | |
| 122 | 122 | except KeyError: | |
| 123 | - assert rec == f.last(), 'Error, last <> last!' | ||
| 123 | + assert rec == f.last(), 'Error, last != last!' | ||
| 124 | 124 | f.previous() | |
| 125 | 125 | break | |
| 126 | 126 | if verbose: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ def tearDown(self): | |||
| 30 | 30 | try: | |
| 31 | 31 | os.remove(self.filename) | |
| 32 | 32 | except OSError, e: | |
| 33 | - if e.errno <> errno.EEXIST: raise | ||
| 33 | + if e.errno != errno.EEXIST: raise | ||
| 34 | 34 | ||
| 35 | 35 | def test01_basic(self): | |
| 36 | 36 | d = db.DB() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ def setUp(self): | |||
| 58 | 58 | try: | |
| 59 | 59 | os.mkdir(homeDir) | |
| 60 | 60 | except OSError, e: | |
| 61 | - if e.errno <> errno.EEXIST: raise | ||
| 61 | + if e.errno != errno.EEXIST: raise | ||
| 62 | 62 | self.env = db.DBEnv() | |
| 63 | 63 | self.setEnvOpts() | |
| 64 | 64 | self.env.open(homeDir, self.envflags | db.DB_CREATE) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,7 +618,7 @@ def comparison(self, nodelist): | |||
| 618 | 618 | for i in range(2, len(nodelist), 2): | |
| 619 | 619 | nl = nodelist[i-1] | |
| 620 | 620 | ||
| 621 | - # comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '==' | ||
| 621 | + # comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '==' | ||
| 622 | 622 | # | 'in' | 'not' 'in' | 'is' | 'is' 'not' | |
| 623 | 623 | n = nl[1] | |
| 624 | 624 | if n[0] == token.NAME: | |
@@ -1396,7 +1396,7 @@ def get_docstring(self, node, n=None): | |||
| 1396 | 1396 | symbol.power, | |
| 1397 | 1397 | ] | |
| 1398 | 1398 | ||
| 1399 | - # comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '==' | ||
| 1399 | + # comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '==' | ||
| 1400 | 1400 | # | 'in' | 'not' 'in' | 'is' | 'is' 'not' | |
| 1401 | 1401 | _cmp_types = { | |
| 1402 | 1402 | token.LESS : '<', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,7 +146,7 @@ def encode(s, binary=True, maxlinelen=76, eol=NL): | |||
| 146 | 146 | # BAW: should encode() inherit b2a_base64()'s dubious behavior in | |
| 147 | 147 | # adding a newline to the encoded string? | |
| 148 | 148 | enc = b2a_base64(s[i:i + max_unencoded]) | |
| 149 | - if enc.endswith(NL) and eol <> NL: | ||
| 149 | + if enc.endswith(NL) and eol != NL: | ||
| 150 | 150 | enc = enc[:-1] + eol | |
| 151 | 151 | encvec.append(enc) | |
| 152 | 152 | return EMPTYSTRING.join(encvec) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -250,7 +250,7 @@ def get_body_encoding(self): | |||
| 250 | 250 | Returns "base64" if self.body_encoding is BASE64. | |
| 251 | 251 | Returns "7bit" otherwise. | |
| 252 | 252 | """ | |
| 253 | - assert self.body_encoding <> SHORTEST | ||
| 253 | + assert self.body_encoding != SHORTEST | ||
| 254 | 254 | if self.body_encoding == QP: | |
| 255 | 255 | return 'quoted-printable' | |
| 256 | 256 | elif self.body_encoding == BASE64: | |
@@ -260,7 +260,7 @@ def get_body_encoding(self): | |||
| 260 | 260 | ||
| 261 | 261 | def convert(self, s): | |
| 262 | 262 | """Convert a string from the input_codec to the output_codec.""" | |
| 263 | - if self.input_codec <> self.output_codec: | ||
| 263 | + if self.input_codec != self.output_codec: | ||
| 264 | 264 | return unicode(s, self.input_codec).encode(self.output_codec) | |
| 265 | 265 | else: | |
| 266 | 266 | return s | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,7 +211,7 @@ def _handle_multipart(self, msg): | |||
| 211 | 211 | # doesn't preserve newlines/continuations in headers. This is no big | |
| 212 | 212 | # deal in practice, but turns out to be inconvenient for the unittest | |
| 213 | 213 | # suite. | |
| 214 | - if msg.get_boundary() <> boundary: | ||
| 214 | + if msg.get_boundary() != boundary: | ||
| 215 | 215 | msg.set_boundary(boundary) | |
| 216 | 216 | # If there's a preamble, write it out, with a trailing CRLF | |
| 217 | 217 | if msg.preamble is not None: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,7 +248,7 @@ def append(self, s, charset=None, errors='strict'): | |||
| 248 | 248 | elif not isinstance(charset, Charset): | |
| 249 | 249 | charset = Charset(charset) | |
| 250 | 250 | # If the charset is our faux 8bit charset, leave the string unchanged | |
| 251 | - if charset <> '8bit': | ||
| 251 | + if charset != '8bit': | ||
| 252 | 252 | # We need to test that the string can be converted to unicode and | |
| 253 | 253 | # back to a byte string, given the input and output codecs of the | |
| 254 | 254 | # charset. | |
@@ -454,7 +454,7 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars): | |||
| 454 | 454 | # If this part is longer than maxlen and we aren't already | |
| 455 | 455 | # splitting on whitespace, try to recursively split this line | |
| 456 | 456 | # on whitespace. | |
| 457 | - if partlen > maxlen and ch <> ' ': | ||
| 457 | + if partlen > maxlen and ch != ' ': | ||
| 458 | 458 | subl = _split_ascii(part, maxlen, restlen, | |
| 459 | 459 | continuation_ws, ' ') | |
| 460 | 460 | lines.extend(subl[:-1]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments