Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all except the main winshell module itself for (near-)PEP8 com…
…pliance
- Loading branch information
Showing
9 changed files
with
609 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import os, sys | ||
import re | ||
|
||
TEMPLATE = re.compile ("DEFINE_PROPERTYKEY\(PKEY_(\w+), ([0-9A-Fx, ]+)\)") | ||
TEMPLATE = re.compile("DEFINE_PROPERTYKEY\(PKEY_(\w+), ([0-9A-Fx, ]+)\)") | ||
|
||
source = r"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\propkey.h" | ||
for a, b in TEMPLATE.findall (open (source).read ()): | ||
print [i.strip () for i in b.split (",")] | ||
for a, b in TEMPLATE.findall(open(source).read()): | ||
print [i.strip() for i in b.split(",")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
# -*- coding: UTF8 -*- | ||
import unittest | ||
|
||
class TestCase (unittest.TestCase): | ||
|
||
def assertEqualCI (self, s1, s2, *args, **kwargs): | ||
self.assertEqual (s1.lower (), s2.lower (), *args, **kwargs) | ||
class TestCase(unittest.TestCase): | ||
|
||
def assertIs (self, item1, item2, *args, **kwargs): | ||
self.assertTrue (item1 is item2, *args, **kwargs) | ||
def assertEqualCI(self, s1, s2, *args, **kwargs): | ||
self.assertEqual(s1.lower(), s2.lower(), *args, **kwargs) | ||
|
||
def assertIsInstance (self, item, klass, *args, **kwargs): | ||
self.assertTrue (isinstance (item, klass), *args, **kwargs) | ||
def assertIs(self, item1, item2, *args, **kwargs): | ||
self.assertTrue(item1 is item2, *args, **kwargs) | ||
|
||
### | ||
def assertIsInstance(self, item, klass, *args, **kwargs): | ||
self.assertTrue(isinstance(item, klass), *args, **kwargs) |
Oops, something went wrong.