Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

TypeError in to_time function in server.py 218, which is callde by time command #266

Closed
liguangyulgy opened this issue Jul 14, 2017 · 0 comments
Assignees
Labels

Comments

@liguangyulgy
Copy link

def to_time(obj):
return float(obj[0] + b'.' + obj[1].zfill(6))

the dot should be a String other than a Byte, or the function will raise TypeError: must be str, not bytes in Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32

@popravich popravich self-assigned this Aug 17, 2017
@popravich popravich added the bug label Aug 17, 2017
popravich added a commit that referenced this issue Nov 2, 2017
commit 1fcdcff
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Oct 25 11:41:24 2017 +0300

    Bump version: 0.3.3 → 0.3.4

commit 56e7c34
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Oct 25 11:36:25 2017 +0300

    update changes.txt

commit 4171376
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Oct 25 11:26:06 2017 +0300

    fix test

commit aaae7b8
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Oct 25 11:14:42 2017 +0300

    add integrational test to compare v0.x version with v1.x

commit 2a6cf14
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Oct 25 10:39:23 2017 +0300

    fix time command when connection-wide encoding is set (fixes #266)

commit ac47208
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Fri Jun 30 10:54:12 2017 +0300

    spelling

commit 7a26c16
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Fri Jun 30 10:25:33 2017 +0300

    bump version to v0.3.3

commit 1082256
Merge: 71ea399 718f731
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Fri Jun 30 10:19:20 2017 +0300

    Merge pull request #257 from pfreixes/fix_lock_critical_bug_v03

    Fix critical bug with patched Lock

commit 718f731
Author: Pau Freixes <pau.freixes@skyscanner.net>
Date:   Thu Jun 29 22:44:53 2017 +0200

    Fix critical bug with patched Lock

commit 71ea399
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Jun 21 10:56:12 2017 +0300

    fix typo

commit 98ee8be
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Jun 21 10:47:36 2017 +0300

    Bump version: 0.3.1 → 0.3.2

commit 013ec54
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Jun 21 10:47:22 2017 +0300

    update CHANGES

commit b2cfb7b
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Wed Jun 21 10:28:19 2017 +0300

    fix timeout passing in pool

commit 201451d
Author: Pau Freixes <pfreixes@gmail.com>
Date:   Wed Jun 21 08:46:50 2017 +0200

    * #231 Patch for the cpython issue with Lock

    * Make Lock compatible with 3.3 and 3.4

    * Changed test to make it compatible with python 3.3 version

    * Flake8 issue

    * Increase coverage by reducing scope, test just the bugfix for 3.6

    * One unique version of Lock.acquire function

    * Use create_future provided by aioredis

commit 2ca2f08
Author: argaen <manu.mirandad@gmail.com>
Date:   Thu Jun 8 20:40:44 2017 +0200

    Create only one task for closing

commit e7a0063
Author: argaen <manu.mirandad@gmail.com>
Date:   Mon Jun 5 16:26:22 2017 +0200

    close_waiter is lazily created

commit e38be72
Author: Pau Freixes <pau.freixes@skyscanner.net>
Date:   Thu May 11 22:07:33 2017 +0200

    Removed print

commit f77a06b
Author: Pau Freixes <pau.freixes@skyscanner.net>
Date:   Thu May 11 17:07:55 2017 +0200

    Some small MR issues fixed

commit eaede3d
Author: Pau Freixes <pau.freixes@skyscanner.net>
Date:   Wed May 10 16:40:24 2017 +0200

    Support for connection timeout param

    Related to #184, it allows aioredis to configure a limited
    time that will be used trying to open a connection, if it is
    reached a `asyncio.TimeoutError` will be raised

    By default any timeout is configured.

commit 6b13dd1
Author: Alexey Popravka <alexey.popravka@horsedevel.com>
Date:   Mon Mar 6 10:36:37 2017 +0200

    tiny styling fix

commit 864a390
Author: marijngiesen <marijn@studio-donder.nl>
Date:   Fri Mar 3 10:25:20 2017 +0100

    Fixed flake8 errors

commit b36a17a
Author: marijngiesen <marijn@studio-donder.nl>
Date:   Fri Mar 3 01:38:42 2017 +0100

    Fixed typo

commit d93e25d
Author: marijngiesen <marijn@studio-donder.nl>
Date:   Fri Mar 3 01:36:37 2017 +0100

    Added ZREVRANGEBYLEX command

commit bab6a0b
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Tue May 9 22:15:29 2017 +0300

    update spelling wordlist

commit e2bae24
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Tue May 9 22:11:40 2017 +0300

    Bump version: 0.3.0 → 0.3.1

commit 1c4327c
Author: Alexey Popravka <popravich@users.noreply.github.com>
Date:   Tue May 9 22:11:35 2017 +0300

    update changes

commit 3b779a8
Author: Alexey Popravka <alexey.popravka@horsedevel.com>
Date:   Mon Mar 27 10:42:04 2017 +0300

    fix pubsub Receiver missing iter() method (fixes #203)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants