equal
deleted
inserted
replaced
10 from numbers import Number |
10 from numbers import Number |
11 |
11 |
12 def bytesformatter(format, args): |
12 def bytesformatter(format, args): |
13 '''Custom implementation of a formatter for bytestrings. |
13 '''Custom implementation of a formatter for bytestrings. |
14 |
14 |
15 This function currently relias on the string formatter to do the |
15 This function currently relies on the string formatter to do the |
16 formatting and always returns bytes objects. |
16 formatting and always returns bytes objects. |
17 |
17 |
18 >>> bytesformatter(20, 10) |
18 >>> bytesformatter(20, 10) |
19 0 |
19 0 |
20 >>> bytesformatter('unicode %s, %s!', ('string', 'foo')) |
20 >>> bytesformatter('unicode %s, %s!', ('string', 'foo')) |