Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
cf18d995
Commit
cf18d995
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
add comment
parent
8bf623f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/helpers.py
+2
-0
2 additions, 0 deletions
src/common/helpers.py
with
2 additions
and
0 deletions
src/common/helpers.py
+
2
−
0
View file @
cf18d995
...
...
@@ -353,6 +353,7 @@ def from_xs_boolean_to_python_boolean(value):
def
ensure_unicode_string
(
s
):
# py23 u'abc'.decode('utf-8') raises
# python24 does not. is python23 is ooold we can remove this func
# FIXME: remove this when we abandon py23
if
isinstance
(
s
,
str
):
s
=
s
.
decode
(
'
utf-8
'
)
return
s
...
...
@@ -363,6 +364,7 @@ def get_xmpp_show(show):
return
show
def
one_account_connected
():
'''
returns True if at least one account is connected, else False
'''
one_connected
=
False
accounts
=
gajim
.
connections
.
keys
()
for
acct
in
accounts
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment