| 1 |
if e1234123412341234.winerror not in (_winapi.ERROR_SEM_TIMEOUT, |
| 2 |
_winapi.ERROR_PIPE_BUSY) or _check_timeout(t): |
| 3 |
pass |
| 4 |
|
| 5 |
if x: |
| 6 |
if y: |
| 7 |
new_id = max(Vegetable.objects.order_by('-id')[0].id, |
| 8 |
Mineral.objects.order_by('-id')[0].id) + 1 |
| 9 |
|
| 10 |
class X: |
| 11 |
def get_help_text(self): |
| 12 |
return ngettext( |
| 13 |
"Your password must contain at least %(min_length)d character.", |
| 14 |
"Your password must contain at least %(min_length)d characters.", |
| 15 |
self.min_length, |
| 16 |
) % {'min_length': self.min_length} |
| 17 |
|
| 18 |
class A: |
| 19 |
def b(self): |
| 20 |
if self.connection.mysql_is_mariadb and ( |
| 21 |
10, |
| 22 |
4, |
| 23 |
3, |
| 24 |
) < self.connection.mysql_version < (10, 5, 2): |
| 25 |
pass |
| 26 |
|
| 27 |
|
| 28 |
# output |
| 29 |
|
| 30 |
if e1234123412341234.winerror not in ( |
| 31 |
_winapi.ERROR_SEM_TIMEOUT, |
| 32 |
_winapi.ERROR_PIPE_BUSY, |
| 33 |
) or _check_timeout(t): |
| 34 |
pass |
| 35 |
|
| 36 |
if x: |
| 37 |
if y: |
| 38 |
new_id = ( |
| 39 |
max( |
| 40 |
Vegetable.objects.order_by("-id")[0].id, |
| 41 |
Mineral.objects.order_by("-id")[0].id, |
| 42 |
) |
| 43 |
+ 1 |
| 44 |
) |
| 45 |
|
| 46 |
|
| 47 |
class X: |
| 48 |
def get_help_text(self): |
| 49 |
return ngettext( |
| 50 |
"Your password must contain at least %(min_length)d character.", |
| 51 |
"Your password must contain at least %(min_length)d characters.", |
| 52 |
self.min_length, |
| 53 |
) % {"min_length": self.min_length} |
| 54 |
|
| 55 |
|
| 56 |
class A: |
| 57 |
def b(self): |
| 58 |
if self.connection.mysql_is_mariadb and ( |
| 59 |
10, |
| 60 |
4, |
| 61 |
3, |
| 62 |
) < self.connection.mysql_version < (10, 5, 2): |
| 63 |
pass |