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
l-n-s
gajim
Commits
82016886
Commit
82016886
authored
6 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Move imports to the top
parent
7a5d791b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/common/helpers.py
+5
-6
5 additions, 6 deletions
gajim/common/helpers.py
with
5 additions
and
6 deletions
gajim/common/helpers.py
+
5
−
6
View file @
82016886
...
...
@@ -42,6 +42,7 @@ import logging
import
json
import
shutil
import
collections
from
io
import
StringIO
from
datetime
import
datetime
,
timedelta
from
distutils.version
import
LooseVersion
as
V
from
encodings.punycode
import
punycode_encode
...
...
@@ -60,6 +61,10 @@ from gajim.common.i18n import ngettext
from
gajim.common.const
import
ShowConstant
from
gajim.common.const
import
Display
if
app
.
is_installed
(
'
PYCURL
'
):
import
pycurl
log
=
logging
.
getLogger
(
'
gajim.c.helpers
'
)
special_groups
=
(
_
(
'
Transports
'
),
_
(
'
Not in Roster
'
),
_
(
'
Observers
'
),
_
(
'
Groupchats
'
))
...
...
@@ -558,12 +563,6 @@ def datetime_tuple(timestamp):
tim
=
tim
.
timetuple
()
return
tim
from
gajim.common
import
app
if
app
.
is_installed
(
'
PYCURL
'
):
import
pycurl
from
io
import
StringIO
def
convert_bytes
(
string
):
suffix
=
''
# IEC standard says KiB = 1024 bytes KB = 1000 bytes
...
...
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