Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Link Mauve
python-nbxmpp
Commits
8e9fe049
Commit
8e9fe049
authored
Apr 06, 2014
by
Maxime Chéramy
Browse files
idlequeue uses time in microseconds (even with Python 2).
parent
bee6e870
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/idlequeue.py
View file @
8e9fe049
...
...
@@ -529,10 +529,6 @@ class GlibIdleQueue(IdleQueue):
Creates a dict, which maps file/pipe/sock descriptor to glib event id
"""
self
.
events
=
{}
if
sys
.
version_info
[
0
]
==
2
:
self
.
current_time
=
gobject
.
get_current_time
else
:
self
.
current_time
=
GLib
.
get_real_time
def
_add_idle
(
self
,
fd
,
flags
):
"""
...
...
@@ -571,3 +567,9 @@ class GlibIdleQueue(IdleQueue):
def
process
(
self
):
self
.
_check_time_events
()
if
sys
.
version_info
[
0
]
==
2
:
def
current_time
(
self
):
return
gobject
.
get_current_time
()
*
1e6
else
:
current_time
=
GLib
.
get_real_time
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment