Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy-monitor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy-monitor
Commits
8ee7c72a
Commit
8ee7c72a
authored
Aug 31, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated OS name
parent
8d7d062c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
server.py
server.py
+7
-1
No files found.
server.py
View file @
8ee7c72a
...
@@ -12,7 +12,13 @@ from wspy import websocket, Frame, OPCODE_TEXT, WebkitDeflateFrame
...
@@ -12,7 +12,13 @@ from wspy import websocket, Frame, OPCODE_TEXT, WebkitDeflateFrame
def
osname
():
def
osname
():
if
platform
.
system
()
==
'Linux'
:
if
platform
.
system
()
==
'Linux'
:
return
'Linux %s %s (%s)'
%
platform
.
dist
()
distro
,
version
,
codename
%
platform
.
dist
()
name
=
'Linux - %s %s'
%
(
distro
,
version
)
if
codename
:
name
+=
' (%s)'
%
codename
return
name
#return '%s %s' % (platform.system(), platform.release())
#return '%s %s' % (platform.system(), platform.release())
return
platform
.
platform
()
return
platform
.
platform
()
...
...
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