~sergiusens/python-uinput/native_packaging

  • Committer: Tuomas Jorma Juhani Räsänen
  • Date: 2012-08-12 16:43:08 UTC
  • Revision ID: git-v1:bc0448b82498995eafcd83038706220aa60855a8
Define Device.__uinput_dev in a fail-proof manner

Previously Device.__uinput_fd was defined only after succesful return
from suinput_open(). This resulted in slightly erroneous behavior in
cleanup stage, because Device.__del__() was assuming that
Device.__uinput_fd existed. However, when suinput_open() failed (for
example when the user did not have sufficient permissions to
/dev/uinput), Device.__uinput_fd did not exist at all, leading to a
slightly cryptic backtrace where AttributeError was the top-most
exception.
Filename Latest Rev Last Changed Committer Comment Size
..
examples 14 14 years ago Tuomas Räsänen Major refactoring, much more granular and flexible Diff
libsuinput 69 12 years ago Tuomas Jorma Juhani Räsänen libsuinput as a subtree Diff
src 1 14 years ago Tuomas Räsänen Initial commit. Diff
udev-rules 72 12 years ago Tuomas Jorma Juhani Räsänen Added udev rule to chgrp uinput to group 'uinput' Diff
COPYING 36 13 years ago Tuomas Räsänen (tuos) Updated project details, such as homepage, downloa 34.2 KB Diff Download File
MANIFEST.in 76 12 years ago Tuomas Jorma Juhani Räsänen distribute udev-rules 101 bytes Diff Download File
NEWS 77 12 years ago Tuomas Jorma Juhani Räsänen Bumped up version numbers to 0.8 762 bytes Diff Download File
README 73 12 years ago Tuomas Jorma Juhani Räsänen Revised README 2.7 KB Diff Download File
setup.py 78 11 years ago Tuomas Jorma Juhani Räsänen Python3 compatibility. - Using print function - S 2.1 KB Diff Download File