diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tk_tools/__init__.py b/tk_tools/__init__.py index <HASH>..<HASH> 100644 --- a/tk_tools/__init__.py +++ b/tk_tools/__init__.py @@ -3,7 +3,7 @@ from tk_tools.groups import EntryGrid, LabelGrid, \ KeyValueEntry, SpreadSheetReader, ButtonGrid, \ Calendar, MultiSlotFrame, SevenSegment, SevenSegmentDig...
- Added missing compatibility references in __init__.py
py
diff --git a/post_office/models.py b/post_office/models.py index <HASH>..<HASH> 100644 --- a/post_office/models.py +++ b/post_office/models.py @@ -1,5 +1,6 @@ import sys import warnings +from uuid import uuid4 from collections import namedtuple @@ -184,6 +185,8 @@ class Attachment(models.Model): if not ...
Save attachments as uuid4 + ext
py
diff --git a/gnsq/stream/stream.py b/gnsq/stream/stream.py index <HASH>..<HASH> 100644 --- a/gnsq/stream/stream.py +++ b/gnsq/stream/stream.py @@ -2,7 +2,7 @@ from __future__ import absolute_import from resource import getpagesize -from errno import ENOTCONN +from errno import ENOTCONN, EDEADLK, EAGAIN, EWOULDBLOCK...
Retry recv on EAGAIN and friends.
py
diff --git a/tests/test_mapper.py b/tests/test_mapper.py index <HASH>..<HASH> 100644 --- a/tests/test_mapper.py +++ b/tests/test_mapper.py @@ -16,7 +16,7 @@ class MapTest(unittest.TestCase): def setUp(self): """ gets called for EACH test """ unittest.TestCase.setUp(self) - self.mymap = mod...
test for mapper.py instantiates Mapper with map_file
py
diff --git a/bugwarrior/services/gitlab.py b/bugwarrior/services/gitlab.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/gitlab.py +++ b/bugwarrior/services/gitlab.py @@ -4,6 +4,10 @@ standard_library.install_aliases() from builtins import map from builtins import filter +try: + from urllib import quote ...
Make include_repos work the way the documentation suggests (#<I>) * If the user has specified include_repos, then only fetch those * Remove include_repos check in filter_repos per <URL> * Adjust logic allowing for individual pulls to be more specific, still allowing for regex to run as well * Remove excess sp...
py
diff --git a/beeswarm/beekeeper/webapp/app.py b/beeswarm/beekeeper/webapp/app.py index <HASH>..<HASH> 100644 --- a/beeswarm/beekeeper/webapp/app.py +++ b/beeswarm/beekeeper/webapp/app.py @@ -105,7 +105,7 @@ def hive_data(): return '' -@app.route('/add/hive', methods=['GET', 'POST']) +@app.route('/ws/hive', met...
updated route for new hive configurations
py
diff --git a/Process.py b/Process.py index <HASH>..<HASH> 100755 --- a/Process.py +++ b/Process.py @@ -38,7 +38,7 @@ class Acc: last_raw is used to get the rainfall in this period.""" if raw['wind_ave'] != None: - if raw['wind_dir'] not in (None, 128): + if raw['wind_dir'] != N...
Cured bug caused by invalid wind direction when station loses contact with sensors. See issue <I>.
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -53,8 +53,18 @@ class TestFmtStr(unittest.TestCase): self.assertEqual(a.shared_atts, {}) self.assertEqual(b.shared_atts, {'bold': True}) - def test_copy_with_new_string(self): - pass + def test_cop...
Added tests for copying a FmtStr with a new string and for inserting a string.
py
diff --git a/spyderlib/widgets/explorer.py b/spyderlib/widgets/explorer.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/explorer.py +++ b/spyderlib/widgets/explorer.py @@ -395,8 +395,11 @@ class ExplorerTreeWidget(DirView): path, valid = QInputDialog.getText(self, ...
File explorer widget: fixed "Rename" feature
py
diff --git a/testing/test_git.py b/testing/test_git.py index <HASH>..<HASH> 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -123,7 +123,8 @@ def test_git_archive_export_ignore(wd): '/test1.txt -export-ignore\n/test2.txt export-ignore') wd('git add test1.txt test2.txt') wd.commit() ...
Fix existing git file finder test Make the test compliant with file finder spec (although integration.find_files is not spec compliant yet, because it defaults to '.' with path is empty)
py
diff --git a/sdnotify/__init__.py b/sdnotify/__init__.py index <HASH>..<HASH> 100644 --- a/sdnotify/__init__.py +++ b/sdnotify/__init__.py @@ -37,7 +37,7 @@ class SystemdNotifier: if addr[0] == '@': addr = '\0' + addr[1:] self.socket.connect(addr) - except: + exc...
don't use bare except: Catching all exceptions is usually not desired. For example, this could ignore `KeyboardInterrupt` or `SystemExit`.
py
diff --git a/claripy/operations.py b/claripy/operations.py index <HASH>..<HASH> 100644 --- a/claripy/operations.py +++ b/claripy/operations.py @@ -277,7 +277,11 @@ def not_simplifier(body): def extract_simplifier(high, low, val): if val.op == 'ZeroExt': - val = ast.all_operations.Concat(ast.all_operation...
Avoid creating zero-length BVVs in expression optimizing code.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def hack_find_packages(include_str): setup( name='ProsperCommon', - version='0.0.6', + version='0.1.0', license='MIT', classifiers=[ 'Programming Language :: Python :: 3.5' @@ -3...
incrementing setup.py version for <I> release
py
diff --git a/test_txkazoo.py b/test_txkazoo.py index <HASH>..<HASH> 100644 --- a/test_txkazoo.py +++ b/test_txkazoo.py @@ -171,7 +171,7 @@ class SetPartitionerTests(TxKazooTestCase): @defer.inlineCallbacks def partitioning(reactor, client): client.add_listener(zk_listener) - part = client.SetPartitioner('/man...
hosts as cmd-line arg also changing time_boundary=<I> as that is used in otter
py
diff --git a/wepay/__init__.py b/wepay/__init__.py index <HASH>..<HASH> 100644 --- a/wepay/__init__.py +++ b/wepay/__init__.py @@ -1,7 +1,7 @@ from api import WePay # Major, minor, revision -VERSION = (1, 2, 0) +VERSION = (1, 2, 1) def get_version(): return "%s.%s.%s" % VERSION
bumped version up, uploaded to pypi
py
diff --git a/test/test_enum.py b/test/test_enum.py index <HASH>..<HASH> 100644 --- a/test/test_enum.py +++ b/test/test_enum.py @@ -11,9 +11,9 @@ class EnumTest(ClangTest): def test_enum(self): """ + Test simple values """ - flags = ['-target', 'i386-linux'] - self.gen('test...
remove i<I> test here.
py
diff --git a/pupa/importers/base.py b/pupa/importers/base.py index <HASH>..<HASH> 100644 --- a/pupa/importers/base.py +++ b/pupa/importers/base.py @@ -121,7 +121,11 @@ class BaseImporter(object): if json_id.startswith('~'): spec = get_psuedo_id(json_id) spec = self.limit_spec(spec) - ...
better error message on failure to resolve psuedo-id
py
diff --git a/hearthstone/hslog/parser.py b/hearthstone/hslog/parser.py index <HASH>..<HASH> 100644 --- a/hearthstone/hslog/parser.py +++ b/hearthstone/hslog/parser.py @@ -560,6 +560,20 @@ class LogParser(PowerHandler, ChoicesHandler, OptionsHandler, SpectatorModeHandl """ Trigger on a tag change if we did not fin...
hslog: Allow a more flexible name for the AI AI players in the GameState suffer from Delayed Naming Syndrome.
py
diff --git a/girc/client.py b/girc/client.py index <HASH>..<HASH> 100755 --- a/girc/client.py +++ b/girc/client.py @@ -83,6 +83,14 @@ class ServerConnection(asyncio.Protocol): self.user = user self.real = real + @property + def channels(self): + return self.info.channels + + @propert...
client: Add convenience server.users/channels vars
py
diff --git a/beekeeper/data_handlers.py b/beekeeper/data_handlers.py index <HASH>..<HASH> 100644 --- a/beekeeper/data_handlers.py +++ b/beekeeper/data_handlers.py @@ -29,7 +29,7 @@ class DataHandlerMeta(type): cls.registry.update(**{mimetype: cls for mimetype in dct.get('mimetypes', [dct.get('mimetype')])}...
Adding explicit str() cast to accommodate python2 being unable to handle unicode variable names
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,12 +38,11 @@ import sys try: from setuptools import setup, Extension from setuptools.command import install_lib, sdist, build_ext - from setuptools import log as setup_log except ImportError: from distu...
fix minor import issue in setup.py
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -9,6 +9,8 @@ from cookiecutter.main import is_repo_url, expand_abbreviations 'gitolite@server:team/repo', 'git@github.com:audreyr/cookiecutter.git', 'https://github.com/au...
Add test repo urls with explicit vcs types
py
diff --git a/examples/pivot_demo.py b/examples/pivot_demo.py index <HASH>..<HASH> 100644 --- a/examples/pivot_demo.py +++ b/examples/pivot_demo.py @@ -10,11 +10,13 @@ # Copyright (c) 2011 Paul T. McGuire # from littletable import Table +import os +this_dir, _ = os.path.split(__file__) # import from csv, convert ...
Make sure pivot_demo.py reads input csv from the module's dir, not working directory
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -1,6 +1,6 @@ # fmt: off __title__ = "spacy-nightly" -__version__ = "3.0.0a7" +__version__ = "3.0.0a8" __release__ = True __download_url__ = "https://github.com/explosion/spacy-models/releases/downlo...
Set version to <I>a8
py
diff --git a/pysat/instruments/timed_see.py b/pysat/instruments/timed_see.py index <HASH>..<HASH> 100644 --- a/pysat/instruments/timed_see.py +++ b/pysat/instruments/timed_see.py @@ -64,6 +64,9 @@ basic_tag = {'dir': '/pub/data/timed/see/data/level3a_cdf', 'local_fname': fname} supported_tags = {'':{'': ...
Added TIMED_SEE
py
diff --git a/ontobio/io/assocwriter.py b/ontobio/io/assocwriter.py index <HASH>..<HASH> 100644 --- a/ontobio/io/assocwriter.py +++ b/ontobio/io/assocwriter.py @@ -124,10 +124,9 @@ class GafWriter(AssocWriter): db, db_object_id = self._split_prefix(subj) - rel = assoc['relation'] - qualifier =...
fixing qualiier field in writing gaf
py
diff --git a/manticore/core/cpu/arm.py b/manticore/core/cpu/arm.py index <HASH>..<HASH> 100644 --- a/manticore/core/cpu/arm.py +++ b/manticore/core/cpu/arm.py @@ -4,7 +4,7 @@ from .abstractcpu import Cpu, RegisterFile, Operand from .abstractcpu import SymbolicPCException, InvalidPCException, Interruption from .abstra...
arm: Fix broken dynamic APSR (#<I>)
py
diff --git a/ryu/cmd/rpc_cli.py b/ryu/cmd/rpc_cli.py index <HASH>..<HASH> 100755 --- a/ryu/cmd/rpc_cli.py +++ b/ryu/cmd/rpc_cli.py @@ -43,8 +43,12 @@ from ryu.lib import rpc CONF = cfg.CONF CONF.register_cli_opts([ - # eg. rpc-cli --peers=hoge=localhost:9998,fuga=localhost:9999 - cfg.ListOpt('peers', default=...
rpc_cli: Enable to execute a single command This patch enables 'ryu rpc-cli' command to execute a single command not interactively. e.g.) $ ryu rpc-cli --peers=bgp=localhost:<I> \ --command='request bgp operator.show [{"params": ["rib", "ipv4"]}]' This feature is convenient to controle BGPSpeaker states via shell ...
py
diff --git a/phy/session/session.py b/phy/session/session.py index <HASH>..<HASH> 100644 --- a/phy/session/session.py +++ b/phy/session/session.py @@ -322,6 +322,7 @@ class Session(BaseSession): # Add the spikes in the `.kwik` and `.kwx` files. for group in out.groups: spike_samples = _co...
WIP: create empty clustering at the end of spike detection.
py
diff --git a/sentry_comments/plugin.py b/sentry_comments/plugin.py index <HASH>..<HASH> 100644 --- a/sentry_comments/plugin.py +++ b/sentry_comments/plugin.py @@ -81,13 +81,14 @@ class CommentsPlugin(MailPlugin): return {'send_to_members': False} def _send_mail(self, comment, group): - recipients...
fix broken link in email that missing team's slug path
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -200,6 +200,9 @@ amazon = [ pandas_requirement, 'mypy-boto3-rds>=1.21.0', 'mypy-boto3-redshift-data>=1.21.0', + # XML to dict 0.13.0 breaks some EMR tests + # It should be removed once we solve https://git...
Temporarily pin xmltodict to <I> to fix main failure (#<I>) The xmltodict 0,<I> breaks some tests and likely <I> is buggy as the error is ValueError: Malformatted input. We pin it to <I> to fix the main failing. Related: #<I>
py
diff --git a/pysat/_meta.py b/pysat/_meta.py index <HASH>..<HASH> 100644 --- a/pysat/_meta.py +++ b/pysat/_meta.py @@ -277,7 +277,7 @@ class Meta(object): """Drops variables (names) from metadata.""" # drop lower dimension data - self._data = self._data.drop(names, axis=0) + self.data ...
BUG: Switched private data assignment with object property
py
diff --git a/telephus/client.py b/telephus/client.py index <HASH>..<HASH> 100644 --- a/telephus/client.py +++ b/telephus/client.py @@ -112,14 +112,14 @@ class CassandraClient(object): timestamp = timestamp or self._time() consistency = consistency or self.consistency colsorsupers = self._mk_c...
batch_insert uses batch_mutate
py
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/oqvalidation.py +++ b/openquake/commonlib/oqvalidation.py @@ -287,8 +287,8 @@ class OqParam(valid.ParamSet): if self.calculation_mode == 'ebrisk': if self.in...
Removed warning [skip CI] Former-commit-id: <I>f0aa<I>f<I>dcc<I>fe2f9a9c<I>d6f<I>c
py
diff --git a/rstcheck/__init__.py b/rstcheck/__init__.py index <HASH>..<HASH> 100755 --- a/rstcheck/__init__.py +++ b/rstcheck/__init__.py @@ -142,10 +142,7 @@ class CodeBlockDirective(docutils.parsers.rst.Directive): def register_code_directive() -> None: """Register code directive.""" - if not SPHINX_INSTA...
don't register `code-block` and `sourcecode` if sphinx is not activate; fixes #<I>
py
diff --git a/tests/account_tests.py b/tests/account_tests.py index <HASH>..<HASH> 100644 --- a/tests/account_tests.py +++ b/tests/account_tests.py @@ -13,7 +13,7 @@ class TestAccount(TestCase): def test_headers(self): """ Test that headers contain the access token and the default content type only.""" ...
tests update following OutlookAccount.headers refactoring.
py
diff --git a/test/elastic_test.py b/test/elastic_test.py index <HASH>..<HASH> 100644 --- a/test/elastic_test.py +++ b/test/elastic_test.py @@ -21,7 +21,7 @@ class ElasticTest(unittest.TestCase): """ ES tests. """ def test_elastic(self): - """ Tests w/o integration. """ + """ Tests w/o integrat...
note about weird output on OS X
py
diff --git a/bugzilla/base.py b/bugzilla/base.py index <HASH>..<HASH> 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -784,7 +784,7 @@ class Bugzilla(object): names = {"product": data.pop("product"), "component": data.pop("component")} updates = {} - fo...
base: Fix editing dictionary during iteration
py
diff --git a/gwpy/plot/plot.py b/gwpy/plot/plot.py index <HASH>..<HASH> 100644 --- a/gwpy/plot/plot.py +++ b/gwpy/plot/plot.py @@ -512,11 +512,12 @@ def _group_axes_data(inputs, separate=None, flat=False): if isinstance(x, dict): # unwrap dict x = list(x.values()) - # new group from iter...
gwpy.plot: use isscalar instead of ndim
py
diff --git a/assemblerflow/generator/inspect.py b/assemblerflow/generator/inspect.py index <HASH>..<HASH> 100644 --- a/assemblerflow/generator/inspect.py +++ b/assemblerflow/generator/inspect.py @@ -6,7 +6,7 @@ import signal from os.path import join, abspath from time import gmtime, strftime, sleep -from collection...
Changed processes attribute to ordered dict
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( url='http://github.com/mthornhill/django-postal', license='BSD', description="A Django app for l10n of postal addresses.", - long_description=read('README'), + long_description=read('...
fix up long_description file location
py
diff --git a/pyrax/resource.py b/pyrax/resource.py index <HASH>..<HASH> 100644 --- a/pyrax/resource.py +++ b/pyrax/resource.py @@ -37,6 +37,8 @@ class BaseResource(object): get_details = True # Atts not to display when showing the __repr__() _non_display = [] + # Properties to add to the __repr__() di...
Added the ability to display properties in the __repr__.
py
diff --git a/cert_issuer/__init__.py b/cert_issuer/__init__.py index <HASH>..<HASH> 100644 --- a/cert_issuer/__init__.py +++ b/cert_issuer/__init__.py @@ -1 +1 @@ -__version__ = '2.0.18' +__version__ = '2.0.19'
Bumping version to <I>
py
diff --git a/src/html5lib/tokenizer.py b/src/html5lib/tokenizer.py index <HASH>..<HASH> 100644 --- a/src/html5lib/tokenizer.py +++ b/src/html5lib/tokenizer.py @@ -436,7 +436,7 @@ class HTMLTokenizer: if self.currentToken \ and self.currentToken["name"].lower() == "".join(charStack[:-1]).lowe...
Added some failing tokeniser tests, and fixed them --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I>
py
diff --git a/tests/test_objective/test_modifiers.py b/tests/test_objective/test_modifiers.py index <HASH>..<HASH> 100644 --- a/tests/test_objective/test_modifiers.py +++ b/tests/test_objective/test_modifiers.py @@ -274,6 +274,34 @@ class Final_Methods(_UniversalBaseClass): def florb(self): ...
Testing the non-recommended order of @override and @final
py
diff --git a/pymeshfix/_version.py b/pymeshfix/_version.py index <HASH>..<HASH> 100644 --- a/pymeshfix/_version.py +++ b/pymeshfix/_version.py @@ -6,5 +6,5 @@ For example: version_info = 0, 27, 'dev0' """ -version_info = 0, 14, 'dev0' +version_info = 0, 15, 'dev0' __version__ = '.'.join(map(str, version_info))
push dev version to <I>.dev0
py
diff --git a/salt/modules/parted.py b/salt/modules/parted.py index <HASH>..<HASH> 100644 --- a/salt/modules/parted.py +++ b/salt/modules/parted.py @@ -77,9 +77,9 @@ def probe(*devices, **kwargs): salt.utils.kwargs_warn_until(kwargs, 'Beryllium') if 'device' in kwargs: devices = tuple([kwargs['device'...
A few style fixes to satisify lint
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -22,9 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +import sys import pytest import subprocess -from os import path, chdir, uti...
Use pytest.mark.skipif() to skip test_scons() with python3
py
diff --git a/docker_scripts/squash.py b/docker_scripts/squash.py index <HASH>..<HASH> 100644 --- a/docker_scripts/squash.py +++ b/docker_scripts/squash.py @@ -60,7 +60,7 @@ class Squash(object): try: return self.squash(image) - except Exception: + except: # https://git...
Catch all exceptions, even keyboard interruptions so we can clean up temporary files
py
diff --git a/molo/profiles/forms.py b/molo/profiles/forms.py index <HASH>..<HASH> 100644 --- a/molo/profiles/forms.py +++ b/molo/profiles/forms.py @@ -101,7 +101,7 @@ class RegistrationForm(forms.Form): next = forms.CharField(required=False) def __init__(self, *args, **kwargs): - questions = kwargs.p...
Make questions on form default to empty list
py
diff --git a/cli/polyaxon/utils/cli_constants.py b/cli/polyaxon/utils/cli_constants.py index <HASH>..<HASH> 100644 --- a/cli/polyaxon/utils/cli_constants.py +++ b/cli/polyaxon/utils/cli_constants.py @@ -21,6 +21,7 @@ INIT_COMMAND = ( ) DEFAULT_IGNORE_LIST = """ +./.polyaxon .git .eggs eggs @@ -32,7 +33,36 @@ var...
Improve default ignore manager with common python ignore patterns
py
diff --git a/astroplan/conftest.py b/astroplan/conftest.py index <HASH>..<HASH> 100644 --- a/astroplan/conftest.py +++ b/astroplan/conftest.py @@ -36,22 +36,21 @@ def pytest_runtest_setup(item): # Make appropriate substitutions to mock internet querying methods # within the tests if item.get_marker('remo...
fix pytest machinery to to use just runtest
py
diff --git a/helga_youtube_meta/plugin.py b/helga_youtube_meta/plugin.py index <HASH>..<HASH> 100644 --- a/helga_youtube_meta/plugin.py +++ b/helga_youtube_meta/plugin.py @@ -12,7 +12,7 @@ from helga import settings REQUEST_TEMPLATE = '{}videos?id={}&key={}&part=snippet,statistics,contentDetails' RESPONSE_TEMPLATE ...
fix api endpoint and params derp during refactoring in previous commit
py
diff --git a/pybliometrics/scopus/abstract_retrieval.py b/pybliometrics/scopus/abstract_retrieval.py index <HASH>..<HASH> 100644 --- a/pybliometrics/scopus/abstract_retrieval.py +++ b/pybliometrics/scopus/abstract_retrieval.py @@ -64,6 +64,8 @@ class AbstractRetrieval(Retrieval): items = listify(self._head.get...
Fix bug with None in author-group list
py
diff --git a/cgroupspy/utils.py b/cgroupspy/utils.py index <HASH>..<HASH> 100644 --- a/cgroupspy/utils.py +++ b/cgroupspy/utils.py @@ -24,6 +24,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN I...
add util for getting major/minor device numbers
py
diff --git a/tensorflow_probability/python/distributions/geometric.py b/tensorflow_probability/python/distributions/geometric.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/geometric.py +++ b/tensorflow_probability/python/distributions/geometric.py @@ -86,13 +86,13 @@ class Geometric(d...
Use common_dtype to ensure we get a base dtype rather than a float<I>_ref. PiperOrigin-RevId: <I>
py
diff --git a/examples/hid/device.py b/examples/hid/device.py index <HASH>..<HASH> 100755 --- a/examples/hid/device.py +++ b/examples/hid/device.py @@ -90,15 +90,6 @@ class Mouse(functionfs.HIDFunction): (GO_RIGHT_REPORT, ), ) -class SubprocessMouse(SubprocessFunction): - """ - Just to illu...
examples/hid/device.py: Simplify. usbcat is a better example of why SubprocessFunction may need to be subclassed.
py
diff --git a/firebirdsql/services.py b/firebirdsql/services.py index <HASH>..<HASH> 100755 --- a/firebirdsql/services.py +++ b/firebirdsql/services.py @@ -8,27 +8,9 @@ ############################################################################## import sys, os, socket import xdrlib, time, datetime, decimal, struct ...
remove surprplus lines in services.py
py
diff --git a/ospd/command/command.py b/ospd/command/command.py index <HASH>..<HASH> 100644 --- a/ospd/command/command.py +++ b/ospd/command/command.py @@ -448,7 +448,8 @@ class StartScan(BaseCommand): def handle_xml(self, xml: Element) -> bytes: """ Handles <start_scan> command. - @return: Respon...
Update start scan parallel Don't parse parallel attribute at all. Just check if it is set and raise a warning.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ if __name__ == "__main__": author_email="lgastako@gmail.com", url="https://github.com/lgastako/db", provides=["db"], + packages=["db"], cmdclass={"test": PyTe...
Try setup.py a different way.
py
diff --git a/wsproto/connection.py b/wsproto/connection.py index <HASH>..<HASH> 100644 --- a/wsproto/connection.py +++ b/wsproto/connection.py @@ -258,7 +258,7 @@ class WSConnection(object): :type data: ``bytes`` """ - if data is None and self.state is ConnectionState.OPEN: + if data i...
Fix a bug on EOF receipt Previously if data was None (indicating the EOF or socket is closed) the connection would close only if it was open, and error otherwise. Now it will return a CloseConnection event regardless of the state, given that the connection has in fact closed.
py
diff --git a/pyuploadcare/file.py b/pyuploadcare/file.py index <HASH>..<HASH> 100644 --- a/pyuploadcare/file.py +++ b/pyuploadcare/file.py @@ -136,10 +136,9 @@ class File(object): @property def cdn_url(self): - if self.is_on_s3 and self.is_stored: - fmt = self.ucare.cdn_base + '{uuid}/' - ...
no check for validity of CDN url
py
diff --git a/pymouse/windows.py b/pymouse/windows.py index <HASH>..<HASH> 100644 --- a/pymouse/windows.py +++ b/pymouse/windows.py @@ -70,7 +70,9 @@ in Windows. This feature is only available on Mac.') windll.user32.SetCursorPos(x, y) def drag(self, x, y): - self.move(x, y) + self.press(*m...
implementing mouse dragging for windows as more than just an alias for move, more consistent interface
py
diff --git a/tests/design/test_floc.py b/tests/design/test_floc.py index <HASH>..<HASH> 100644 --- a/tests/design/test_floc.py +++ b/tests/design/test_floc.py @@ -6,5 +6,11 @@ from aguaclara.core.units import unit_registry as u def test_all_functions(): floc = Flocculator(q=(20 * (u.L/u.s)), temp=(25 * u.degC))...
Write tests for all floc functions with specified examples
py
diff --git a/pliers/extractors/misc.py b/pliers/extractors/misc.py index <HASH>..<HASH> 100644 --- a/pliers/extractors/misc.py +++ b/pliers/extractors/misc.py @@ -41,7 +41,7 @@ class MetricExtractor(Extractor): for idx, f in enumerate(functions): if isinstance(f, str): try: - ...
rsplit instead of split
py
diff --git a/pycm/functions.py b/pycm/functions.py index <HASH>..<HASH> 100644 --- a/pycm/functions.py +++ b/pycm/functions.py @@ -485,10 +485,24 @@ def PC_AC1_calc(P,TOP,POP): def overall_statistics(RACC,TPR,PPV,TP,FN,FP,POP,P,TOP): ''' This function return overall statistics - :param ACC: accuracy - ...
doc : overall_statistics function modified
py
diff --git a/src/numdifftools/tests/test_fornberg.py b/src/numdifftools/tests/test_fornberg.py index <HASH>..<HASH> 100644 --- a/src/numdifftools/tests/test_fornberg.py +++ b/src/numdifftools/tests/test_fornberg.py @@ -1,6 +1,6 @@ from __future__ import print_function -from hypothesis import given, example, note, se...
Removed obsolete import of example from hypothesis
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ if sys.version_info[:2] <= (2, 6): setup( name='dataset', - version='0.5.4', + version='0.5.5', description="Toolkit for Python-based data processing.", long_description="", classifier...
Update setup.py Bugfix version bump.
py
diff --git a/watchtower/__init__.py b/watchtower/__init__.py index <HASH>..<HASH> 100644 --- a/watchtower/__init__.py +++ b/watchtower/__init__.py @@ -132,7 +132,8 @@ class CloudWatchLogHandler(handler_base_class): except Queue.Empty: # If the queue is empty, we don't want to repro...
Additional fix for empty queue handling This short circuits a latter check of the message length, which fails when the message is None
py
diff --git a/ariane_procos/gears.py b/ariane_procos/gears.py index <HASH>..<HASH> 100644 --- a/ariane_procos/gears.py +++ b/ariane_procos/gears.py @@ -841,12 +841,12 @@ class MappingGear(InjectorGearSkeleton): target_endpoint = Endpoint( ...
[ACC-<I>] add endpoint properties before save
py
diff --git a/src/python/pants/backend/java/lint/google_java_format/rules.py b/src/python/pants/backend/java/lint/google_java_format/rules.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/java/lint/google_java_format/rules.py +++ b/src/python/pants/backend/java/lint/google_java_format/rules.py @@ -115,7 +11...
[internal] java: change phrasing of `fmt` description (#<I>) Switch `against` to `on` in Java `fmt` description. [ci skip-rust]
py
diff --git a/example/views.py b/example/views.py index <HASH>..<HASH> 100644 --- a/example/views.py +++ b/example/views.py @@ -1,10 +1,10 @@ import rest_framework.parsers import rest_framework.renderers +from rest_framework import exceptions + import rest_framework_json_api.metadata import rest_framework_json_api.p...
More of this isort madness
py
diff --git a/Xlib/protocol/rq.py b/Xlib/protocol/rq.py index <HASH>..<HASH> 100644 --- a/Xlib/protocol/rq.py +++ b/Xlib/protocol/rq.py @@ -1185,9 +1185,9 @@ class Struct(object): # print # Finally, compile function as for to_binary. - - exec(code) - self.parse_value = types.MethodType(...
Some more adjustments to Xlib.protocol.rq
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -155,6 +155,9 @@ class Client(requests.Session): volumes_dict[vol] = {} volumes = volumes_dict + if not isinstance(volumes_from, six.string_types): + ...
Allow volumes_from to be an iterable
py
diff --git a/tests/test_modeling_common.py b/tests/test_modeling_common.py index <HASH>..<HASH> 100755 --- a/tests/test_modeling_common.py +++ b/tests/test_modeling_common.py @@ -598,6 +598,13 @@ class ModelTesterMixin: config.output_hidden_states = True self._create_and_check_torchscript(config, inpu...
Reduce memory leak in _create_and_check_torchscript (#<I>)
py
diff --git a/mbuild/tests/test_compound.py b/mbuild/tests/test_compound.py index <HASH>..<HASH> 100755 --- a/mbuild/tests/test_compound.py +++ b/mbuild/tests/test_compound.py @@ -539,6 +539,12 @@ class TestCompound(BaseTest): assert compound2.n_bonds == 9 + compound3 = mb.clone(compound2) + c...
Add test for from_parmed with coords_only
py
diff --git a/globus_cli/commands/endpoint/permission/list.py b/globus_cli/commands/endpoint/permission/list.py index <HASH>..<HASH> 100644 --- a/globus_cli/commands/endpoint/permission/list.py +++ b/globus_cli/commands/endpoint/permission/list.py @@ -28,6 +28,8 @@ def list_command(endpoint_id): elif rule['...
Show principal_type in acl list for unusual types For anonymous and all_authenticated_users we want to show the type, not the value, in the acl listing. (The values for these are always ""). Luckily, the other values in this column fit strict formats that preclude any matches with these strings, so the result is unamb...
py
diff --git a/juju/bundle.py b/juju/bundle.py index <HASH>..<HASH> 100644 --- a/juju/bundle.py +++ b/juju/bundle.py @@ -436,7 +436,7 @@ class AddCharmChange(ChangeInfo): entity_id = await context.charmstore.entityId(self.charm) log.debug('Adding %s', entity_id) - await context.client_facade.Ad...
Honor charm channel in bundles Fixes #<I>
py
diff --git a/mutant/compat.py b/mutant/compat.py index <HASH>..<HASH> 100644 --- a/mutant/compat.py +++ b/mutant/compat.py @@ -18,7 +18,7 @@ if django.VERSION >= (1, 8): opts = model_class._meta children = [ related_object.related_model - for related_object in opts.related_obje...
Avoided recreating related cache during clearing.
py
diff --git a/tabular_predDB/convergence_analysis/parse_convergence_results.py b/tabular_predDB/convergence_analysis/parse_convergence_results.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/convergence_analysis/parse_convergence_results.py +++ b/tabular_predDB/convergence_analysis/parse_convergence_results.py @@ -2...
include max_mean in parsed output
py
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/character.py +++ b/LiSE/LiSE/character.py @@ -1216,7 +1216,7 @@ class Character(AbstractCharacter, DiGraph, RuleFollower): } for rulebook, cache in cachemap.items(): branch, turn, tick...
Correct the default names for the character rulebooks
py
diff --git a/dftimewolf/lib/collectors/aws_snapshot_s3_copy.py b/dftimewolf/lib/collectors/aws_snapshot_s3_copy.py index <HASH>..<HASH> 100644 --- a/dftimewolf/lib/collectors/aws_snapshot_s3_copy.py +++ b/dftimewolf/lib/collectors/aws_snapshot_s3_copy.py @@ -95,9 +95,12 @@ class AWSSnapshotS3CopyCollector(module.Thread...
Added check for bucket LocationConstraint in AWSSnapshotS3CopyCollector (#<I>) * Added in AWS->GCP E2E test * Small additions * Notes from PR * Added check for bucket LocationConstraint in AWSSnapshotS3CopyCollector
py
diff --git a/cli/sawtooth_cli/submit.py b/cli/sawtooth_cli/submit.py index <HASH>..<HASH> 100644 --- a/cli/sawtooth_cli/submit.py +++ b/cli/sawtooth_cli/submit.py @@ -78,7 +78,7 @@ def do_submit(args): print('Wait timed out! Some batches have not yet been committed...') for batch_id, status in statu...
Fix truncated committed status for the submit cli
py
diff --git a/wallace/experiments.py b/wallace/experiments.py index <HASH>..<HASH> 100644 --- a/wallace/experiments.py +++ b/wallace/experiments.py @@ -68,7 +68,7 @@ class Experiment(object): .all() def get_network_for_participant(self, participant): - key = participant.id[0:5] + ...
fix logging to cope with short participant_id
py
diff --git a/vyper/old_codegen/function_definitions/external_function.py b/vyper/old_codegen/function_definitions/external_function.py index <HASH>..<HASH> 100644 --- a/vyper/old_codegen/function_definitions/external_function.py +++ b/vyper/old_codegen/function_definitions/external_function.py @@ -136,7 +136,7 @@ def g...
fix order of base arg hanlders
py
diff --git a/tests/jenkins.py b/tests/jenkins.py index <HASH>..<HASH> 100644 --- a/tests/jenkins.py +++ b/tests/jenkins.py @@ -57,7 +57,7 @@ def build_pillar_data(options): ''' Build a YAML formatted string to properly pass pillar data ''' - pillar = {} + pillar = {'test_transport': options.test_tr...
Allow triggering test runs using RAET for transport
py
diff --git a/openquake/nrmllib/__init__.py b/openquake/nrmllib/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/nrmllib/__init__.py +++ b/openquake/nrmllib/__init__.py @@ -60,6 +60,8 @@ class Output(object): """ Context-managed output object which accepts either a path or a file-like object. + + ...
__init__: Added a comment to the Output class.
py
diff --git a/chess/uci.py b/chess/uci.py index <HASH>..<HASH> 100644 --- a/chess/uci.py +++ b/chess/uci.py @@ -645,10 +645,12 @@ class Engine(object): info_handler.score(score_cp, score_mate, score_lowerbound, score_upperbound) if refutation_move is not None: - if not ...
Fix binding of refuted_by in end_of_parameter()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name=n, version="1.6", description="Accessible UI elements for pygame.", - url="http://github.com/chrisnorman7/invisible_ui.git", + url="http://github.com/tbreitenfeldt/invisible_ui.g...
Updated URL in setup.py
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -70,11 +70,7 @@ def driver(request): if driver_class == 'BlackBerry': kwargs.update({'device_password': 'password'}) if driver_class == 'Firefox': - from selenium.webdriver.firefox.firefox...
Remove accidental hard-coding of Firefox binary path in tests
py
diff --git a/master/buildbot/steps/slave.py b/master/buildbot/steps/slave.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/slave.py +++ b/master/buildbot/steps/slave.py @@ -135,7 +135,7 @@ class RemoveDirectory(buildstep.BuildStep): return self.finished(SUCCESS) -class MakeDirectory(Bu...
Add missing 'buildstep.' in MakeDirectory.
py
diff --git a/pddb/__init__.py b/pddb/__init__.py index <HASH>..<HASH> 100644 --- a/pddb/__init__.py +++ b/pddb/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .pddb import PandasDatabase +from .pddb import PandasDatabase, tostr __author__ = 'Oscar Martinez' __email__ = 'omtinez@gmail.com'
Export tostr as a public method
py
diff --git a/openprovider/models.py b/openprovider/models.py index <HASH>..<HASH> 100644 --- a/openprovider/models.py +++ b/openprovider/models.py @@ -64,7 +64,8 @@ class Model(object): lxml.etree.dump(self._obj, *args, **kwargs) def __repr__(self): - return "<%s.%s: %s>" % (type(self).__module__...
Improve Model.__repr__ for empty models
py
diff --git a/dbkit.py b/dbkit.py index <HASH>..<HASH> 100644 --- a/dbkit.py +++ b/dbkit.py @@ -428,7 +428,10 @@ class ThreadAffinePool(PoolBase): # collector kicks in while the starved threads are waiting, this means # they'll have a chance to grab a connection. - __slots__ = ('_cond', '_starved', '_max_...
Add _local to the slots.
py
diff --git a/salt/version.py b/salt/version.py index <HASH>..<HASH> 100644 --- a/salt/version.py +++ b/salt/version.py @@ -169,6 +169,7 @@ class SaltStackVersion(object): LNAMES = dict((k.lower(), v) for (k, v) in NAMES.iteritems()) VNAMES = dict((v, k) for (k, v) in NAMES.iteritems()) + RMATCH = dict((v...
Add attribute which will allow release names match by version.
py
diff --git a/cherrypy/filters/sessionauthenticatefilter.py b/cherrypy/filters/sessionauthenticatefilter.py index <HASH>..<HASH> 100644 --- a/cherrypy/filters/sessionauthenticatefilter.py +++ b/cherrypy/filters/sessionauthenticatefilter.py @@ -26,10 +26,11 @@ class SessionAuthenticateFilter(BaseFilter): """ ...
Disable session_authenticate_filter is static_filter is on
py
diff --git a/nodeconductor/iaas/serializers.py b/nodeconductor/iaas/serializers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/serializers.py +++ b/nodeconductor/iaas/serializers.py @@ -300,8 +300,8 @@ class InstanceCreateSerializer(structure_serializers.PermissionFieldFilteringMix def create(self, valida...
Fix creation of an instance if key is not provided - NC-<I>
py
diff --git a/benchbuild/environments/adapters/buildah.py b/benchbuild/environments/adapters/buildah.py index <HASH>..<HASH> 100644 --- a/benchbuild/environments/adapters/buildah.py +++ b/benchbuild/environments/adapters/buildah.py @@ -153,6 +153,8 @@ LAYER_HANDLERS = { def spawn_layer(container: model.Container, l...
fix(environments): do not spawn the FromLayer This layer is already spawned during initial container construction. This fix is quick and *very* dirty. Ideally, we would just filter the layers in our index as soon as we create the build container, but hey...
py
diff --git a/podcast/views.py b/podcast/views.py index <HASH>..<HASH> 100644 --- a/podcast/views.py +++ b/podcast/views.py @@ -37,7 +37,7 @@ class ShowDetailView(SingleObjectMixin, MultipleObjectMixin, TemplateView): def get(self, request, *args, **kwargs): self.object = self.get_object() self.ob...
Fixed stray self in super call
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -2,8 +2,8 @@ from googleplay import GooglePlayAPI import sys -EMAIL = "" -PASSWD = "" +EMAIL = "maracaiboez" +PASSWD = "fjgozwjmkwyvvutt" testApps = ['com.cpuid.cpu_z'] server = GooglePlayAPI(True)
Fix test build with a dummy account
py