This file contains hidden or 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
| import argparse | |
| import os.path | |
| import pprint | |
| """ | |
| flake8 parser. | |
| this is a quick and dirty tool. | |
| Flake8 output was giving me a headache, so i wrote this quick parser. It will convert a `--file` of flake8 text to a "checklist" format , json or pretty-printed json. |
This file contains hidden or 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
| import argparse | |
| import os.path | |
| import pprint | |
| _sample_data = """/Users/me/path/to/project/files/lib/data/bar.py:52:1: W293 blank line contains whitespace | |
| /Users/me/path/to/project/files/lib/data/foo.py:101:1: W293 blank line contains whitespace | |
| /Users/me/path/to/project/files/lib/utils/date.py:328:5: F811 redefinition of unused 'currentYear' from line 306 | |
| /Users/me/path/to/project/files/lib/utils/date.py:331:5: F811 redefinition of unused 'currentMonth' from line 310 | |
| /Users/me/path/to/project/files/lib/utils/date.py:334:5: F811 redefinition of unused 'currentDay' from line 314 | |
| /Users/me/path/to/project/files/lib/utils/foo.py:595:1: W293 blank line contains whitespace |
This file contains hidden or 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
| import argparse | |
| import os | |
| import subprocess | |
| """ | |
| $ mailq | |
| show mail queue contents | |
| $ sudo postcat -q {queue_id} | |
| show message details |
This file contains hidden or 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
| class _EncodedProxy(ProxyBackend): | |
| def value_decode(self, value): | |
| raise NotImplementedError("override me") | |
| def value_encode(self, value): | |
| raise NotImplementedError("override me") | |
| def set(self, k, v): | |
| v = self.value_encode(v) |
This file contains hidden or 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 bug report is being automatically closed because it did not meet one or more common-sense | |
| and industry-standard reporting requirements. | |
| Exact reasons have been marked below. If you can correct this, feel free to re-open. | |
| ___ The issue is not related to this library, but is a general issue with basic: | |
| ___ Python | |
| ___ Sql | |
| ___ The issue is not actually disclosed inline, but linked to an offsite article: | |
| ___ The issue is disclosed on StackOverflow. |
This file contains hidden or 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 explains some object interfaces used in validator.py | |
| """ | |
| class _DatabaseObject(object): | |
| pass | |
| class _Relationship(object): | |
| pass |
This file contains hidden or 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
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| # | |
| # Use this file to build your own SSCCE | |
| # SSCCE = Short, Self Contained, Correct (Compatible) Example | |
| # see http://sscce.org/ | |
| # | |
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
This file contains hidden or 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
| from pyramid.view import view_config | |
| def sample_callback(request): | |
| pass | |
| @view_config(route_name='home', renderer='templates/mytemplate.pt') | |
| def my_view(request): | |
| """ | |
| 1.6/master | |
| BEFORE: request.finished_callbacks None |
This file contains hidden or 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
| I've been getting A TON of spam hitting my inbox lately. 20+ messages a day. | |
| sometimes more. Usually in the topics of : | |
| - Medicare | |
| - Rewards cards (amazon, home depot) | |
| - Background Checks | |
| - Lawsuits | |
| - EZPass | |
| - Sex offender notification | |
| - Auto Warranty |
This file contains hidden or 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
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| # | |
| # Use this file to build your own SSCCE | |
| # SSCCE = Short, Self Contained, Correct (Compatible) Example | |
| # see http://sscce.org/ | |
| # | |
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |