Skip to content

Commit

Permalink
Specify encoding (utf-8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooz committed Jan 10, 2018
1 parent 193a70b commit 4b5a1a7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/xkeysnail
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python

# -*- coding: utf-8 -*-

if __name__ == '__main__':
from xkeysnail import cli_main
Expand Down
2 changes: 2 additions & 0 deletions example/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

import re
from xkeysnail.transform import *

Expand Down
2 changes: 2 additions & 0 deletions xkeysnail/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

def eval_file(path):
with open(path, "rb") as file:
exec(compile(file.read(), path, 'exec'))
Expand Down
2 changes: 2 additions & 0 deletions xkeysnail/input.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from evdev import ecodes, InputDevice, list_devices
from select import select
from sys import exit
Expand Down
2 changes: 2 additions & 0 deletions xkeysnail/key.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from enum import Enum, unique, IntEnum

__author__ = 'zh'
Expand Down
2 changes: 2 additions & 0 deletions xkeysnail/output.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from evdev import ecodes
from evdev.uinput import UInput
from .key import Action, Combo, Modifier
Expand Down
2 changes: 2 additions & 0 deletions xkeysnail/transform.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from enum import Enum
from .key import Action, Combo, Key, Modifier
from .output import send_combo, send_key_action, send_key
Expand Down

0 comments on commit 4b5a1a7

Please sign in to comment.