pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

When using gevent, the function under window (pendulum.Parse) bug

Open duolabmeng6 opened this issue 4 years ago • 0 comments

  • [ ] I am on the latest Pendulum version.
  • [ ] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name:
  • Pendulum version:

Issue

        import time
        import gevent
        from gevent.threadpool import ThreadPool
        from gevent import monkey, sleep
        monkey.patch_all()

        pool = ThreadPool(6)
        start = time.time()
        for i in range(12):
            pool.spawn(pendulum.parse, "now")
        gevent.wait()
        delay = time.time() - start
  File "C:\Users\csuil\Anaconda3\lib\site-packages\pendulum\tz\local_timezone.py", line 67, in _get_windows_timezone
    from .data.windows import windows_timezones

image

I tested it. I just need to change the location of the code

Please fix the bug

duolabmeng6 avatar May 22 '21 01:05 duolabmeng6