From 810f46d5d5ab940ec4cc207e00930dd467d09ee4 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Wed, 8 Sep 2021 02:02:27 -0600 Subject: [PATCH] Try to fix #30 - Windows encoding issue Error was: SyntaxError: Non-ASCII character '\x90' in file C:\Python27\Removevncpasswd.py.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details --- WindowsRegistry/WindowsRegistry.py | 1 + WindowsRegistry/__init__.py | 1 + d3des/__init__.py | 1 + d3des/d3des.py | 1 + setup.py | 1 + vncpasswd.py | 1 + 6 files changed, 6 insertions(+) diff --git a/WindowsRegistry/WindowsRegistry.py b/WindowsRegistry/WindowsRegistry.py index dd15d89..1884b9f 100755 --- a/WindowsRegistry/WindowsRegistry.py +++ b/WindowsRegistry/WindowsRegistry.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import print_function import sys import _winreg as wreg diff --git a/WindowsRegistry/__init__.py b/WindowsRegistry/__init__.py index dac16fc..d7452ff 100644 --- a/WindowsRegistry/__init__.py +++ b/WindowsRegistry/__init__.py @@ -1 +1,2 @@ +# -*- coding: utf-8 -*- from . import WindowsRegistry diff --git a/d3des/__init__.py b/d3des/__init__.py index 1861436..7d0331b 100644 --- a/d3des/__init__.py +++ b/d3des/__init__.py @@ -1 +1,2 @@ +# -*- coding: utf-8 -*- from . import d3des diff --git a/d3des/d3des.py b/d3des/d3des.py index bb1d642..c7e5180 100755 --- a/d3des/d3des.py +++ b/d3des/d3des.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- ## ## d3des.py - DES implementation ## diff --git a/setup.py b/setup.py index 240cb82..fedb4d8 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import setup, find_packages import inspect import os, errno diff --git a/vncpasswd.py b/vncpasswd.py index eddc5e7..39ec4c7 100755 --- a/vncpasswd.py +++ b/vncpasswd.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# -*- coding: utf-8 -*- """vncpasswd.py: Python implementation of vncpasswd, w/decryption abilities & extra features ;-)"""