diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/modules/win_useradd.py b/salt/modules/win_useradd.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_useradd.py +++ b/salt/modules/win_useradd.py @@ -8,6 +8,9 @@ NOTE: This currently only works with local user accounts, not domain accounts # Import salt libs import salt.utils from salt._compat i...
are in the enum of the users. this was used also to know when to kick out of the while loop. This is one of those moments where you wish that python had a "do while" feature. So i peiced something together that allows res to start at 0 instead of 1. This solved the problem of the first user being dropped from the list ...
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 @@ -163,6 +163,7 @@ class PowerHandler: # Messages def create_game(self, ts): + self.current_action = None self.current_game = Game(0) self....
hslog: Reset current_action on a new game (fixes multi-game files)
py
diff --git a/quark/command.py b/quark/command.py index <HASH>..<HASH> 100644 --- a/quark/command.py +++ b/quark/command.py @@ -16,7 +16,7 @@ Quark compiler. Usage: - quark [options] <command> <file> ... + quark [options] <command> <file>... quark -h | --help quark --version @@ -139,7 +139,6 @@ def main(ar...
Don't warn about broken packages as they are no longer broken
py
diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py index <HASH>..<HASH> 100644 --- a/salt/modules/rh_service.py +++ b/salt/modules/rh_service.py @@ -52,9 +52,15 @@ def __virtual__(): 'ALT', 'OEL', 'SUSE Enterprise Server', + 'SUSE', 'McAfee OS Server' ...
SUSE patch from @etiennepouliot
py
diff --git a/fedmsg.d/endpoints.py b/fedmsg.d/endpoints.py index <HASH>..<HASH> 100644 --- a/fedmsg.d/endpoints.py +++ b/fedmsg.d/endpoints.py @@ -28,5 +28,8 @@ config = dict( "tcp://hub.fedoraproject.org:9940", #"tcp://stg.fedoraproject.org:9940", ], + #"debian-infrastructure"...
Add debian endpoint as comment to file.
py
diff --git a/tools/closure.py b/tools/closure.py index <HASH>..<HASH> 100644 --- a/tools/closure.py +++ b/tools/closure.py @@ -2,20 +2,21 @@ import sys import os import tempfile -path = os.path.abspath(os.path.join(os.path.dirname(__file__), "closure-compiler.jar")) +path = "../tools/closure-compiler.jar" if not o...
fix closure build on Windows, p=jorix, r=me, thanks to mprins and scaddenp, I've verified that the build still works on OSX (closes #<I>) git-svn-id: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ setup( author='Blockstack.org', author_email='support@blockstack.org', description='Name registrations on the Bitcoin blockchain with external storage', - long_description=README, + # long_d...
disable long_description in setup.py since it inteferes with twine
py
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py index <HASH>..<HASH> 100644 --- a/OpenSSL/crypto.py +++ b/OpenSSL/crypto.py @@ -697,6 +697,21 @@ class X509Req(object): _raise_current_error() + def get_extensions(self): + """ + Get extensions to the request. + + :return: A list of X...
Added support for getting extensions from a X<I>Req object. Currently, one can put extensions into a X<I>Req object but has no way to get back those extensions. This change adds the Python code needed to do this. This change depends on the addition of CFFI bindings for X<I>_REQ_get_extensions.
py
diff --git a/common/task_file_managers/_dicttorst.py b/common/task_file_managers/_dicttorst.py index <HASH>..<HASH> 100644 --- a/common/task_file_managers/_dicttorst.py +++ b/common/task_file_managers/_dicttorst.py @@ -77,9 +77,9 @@ def dict2rst(dict_obj): if 'choices' in problem: for choi...
Fix dict2rst with multiple choices
py
diff --git a/can/interfaces/kvaser/canlib.py b/can/interfaces/kvaser/canlib.py index <HASH>..<HASH> 100644 --- a/can/interfaces/kvaser/canlib.py +++ b/can/interfaces/kvaser/canlib.py @@ -319,7 +319,13 @@ class KvaserBus(BusABC): :param int bitrate: Bitrate of channel in bit/s :param int t...
Update Kvaser init description regarding bit timing.
py
diff --git a/esgfpid/rabbit/asynchronous/rabbitthread.py b/esgfpid/rabbit/asynchronous/rabbitthread.py index <HASH>..<HASH> 100644 --- a/esgfpid/rabbit/asynchronous/rabbitthread.py +++ b/esgfpid/rabbit/asynchronous/rabbitthread.py @@ -112,6 +112,13 @@ class RabbitThread(threading.Thread): # These are only us...
Fixed bug in treating inexistent exchanges.
py
diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py index <HASH>..<HASH> 100644 --- a/{{cookiecutter.repo_name}}/setup.py +++ b/{{cookiecutter.repo_name}}/setup.py @@ -23,7 +23,7 @@ setup( ], include_package_data=True, install_requires=[ - 'Django>=1.6.5', + ...
bumping version of Django in setup.py to correspond to requirements/base.txt
py
diff --git a/ocrd_models/ocrd_models/ocrd_mets.py b/ocrd_models/ocrd_models/ocrd_mets.py index <HASH>..<HASH> 100644 --- a/ocrd_models/ocrd_models/ocrd_mets.py +++ b/ocrd_models/ocrd_models/ocrd_mets.py @@ -454,7 +454,7 @@ class OcrdMets(OcrdXmlDocument): def remove_physical_page_fptr(self, fileId): """...
OcrdMets.remove_physical_page_fptr: better docstring
py
diff --git a/autofixture/autofixtures.py b/autofixture/autofixtures.py index <HASH>..<HASH> 100644 --- a/autofixture/autofixtures.py +++ b/autofixture/autofixtures.py @@ -2,7 +2,8 @@ import autofixture import string from datetime import datetime -from django.contrib.auth.models import User, UNUSABLE_PASSWORD +from d...
Fixed #<I> -- UNUSABLE_PASSWORD import is no longer available with Django <I>
py
diff --git a/clients/upload_file.py b/clients/upload_file.py index <HASH>..<HASH> 100644 --- a/clients/upload_file.py +++ b/clients/upload_file.py @@ -5,6 +5,16 @@ import pprint import argparse import ConfigParser +# We're not using this but it might be handy to someone +''' +def md5_for_file(path, block_size=256*1...
Putting back the commented code .
py
diff --git a/HARK/ConsumptionSaving/tests/test_ConsAggShockModel.py b/HARK/ConsumptionSaving/tests/test_ConsAggShockModel.py index <HASH>..<HASH> 100644 --- a/HARK/ConsumptionSaving/tests/test_ConsAggShockModel.py +++ b/HARK/ConsumptionSaving/tests/test_ConsAggShockModel.py @@ -45,7 +45,7 @@ class testAggShockConsumerT...
update automated tests because random seeds are changing for ConsAggShock
py
diff --git a/micawber/providers.py b/micawber/providers.py index <HASH>..<HASH> 100644 --- a/micawber/providers.py +++ b/micawber/providers.py @@ -135,7 +135,7 @@ def bootstrap_basic(cache=None): # i pr.register('http://www.ifixit.com/Guide/View/\S+', Provider('http://www.ifixit.com/Embed')) - pr.registe...
Fixing an unbalanced parentheses
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ setup( 'protobuf>=2.6', 'pygame', 'requests', - 's2clientprotocol>=4.8.6.73620.0', + 's2clientprotocol>=4.10.1.75800.0', 's2protocol', 'six', '...
Bump the s2clientprotocol version to support all the new features. PiperOrigin-RevId: <I>
py
diff --git a/airflow/models.py b/airflow/models.py index <HASH>..<HASH> 100644 --- a/airflow/models.py +++ b/airflow/models.py @@ -807,7 +807,8 @@ class TaskInstance(Base): self.start_date = datetime.now() self.end_date = datetime.now() session.merge(self) ...
Mark tasks triggered by `all_success` as `upstream_failed` if any upstream task is `upstream_failed`
py
diff --git a/lib/svtplay_dl/utils/output.py b/lib/svtplay_dl/utils/output.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/output.py +++ b/lib/svtplay_dl/utils/output.py @@ -163,7 +163,7 @@ def _formatname(output, config, extension): # Remove all {text} we cant replace with something for item in re...
_formatname: check if we have season in output
py
diff --git a/pysrt/srtitem.py b/pysrt/srtitem.py index <HASH>..<HASH> 100644 --- a/pysrt/srtitem.py +++ b/pysrt/srtitem.py @@ -47,7 +47,7 @@ class SubRipItem(object): if not match: raise InvalidItem - data = dict(match.group('start')) + data = dict(match.groupdict()) for g...
fix: SubRipItem.from_string, broken by last refactoring
py
diff --git a/recipe/extensions.py b/recipe/extensions.py index <HASH>..<HASH> 100644 --- a/recipe/extensions.py +++ b/recipe/extensions.py @@ -160,16 +160,10 @@ class AutomaticFilters(RecipeExtension): # Ignore keys that are in exclude_keys continue - # Only lo...
Don't change behavior of automatic filters
py
diff --git a/environ/test.py b/environ/test.py index <HASH>..<HASH> 100644 --- a/environ/test.py +++ b/environ/test.py @@ -148,6 +148,13 @@ class EnvTests(BaseTests): self.assertEqual(url.geturl(), self.URL) self.assertEqual(None, self.env.url('OTHER_URL', default=None)) + def test_url_encoded_pa...
add test for encoded url parts
py
diff --git a/indra/db/util.py b/indra/db/util.py index <HASH>..<HASH> 100644 --- a/indra/db/util.py +++ b/indra/db/util.py @@ -202,13 +202,19 @@ def insert_agents(db, stmt_tbl_obj, agent_tbl_obj, *other_stmt_clauses, if ag is None or ag.db_refs is None: continue for ns, ag_id ...
Handle CHEBI agent id lists.
py
diff --git a/atlassian/bitbucket.py b/atlassian/bitbucket.py index <HASH>..<HASH> 100644 --- a/atlassian/bitbucket.py +++ b/atlassian/bitbucket.py @@ -271,3 +271,30 @@ class Bitbucket(AtlassianRestAPI): repository=repository, ...
Bitbucket: reindex specific methods
py
diff --git a/skyfield/angles.py b/skyfield/angles.py index <HASH>..<HASH> 100644 --- a/skyfield/angles.py +++ b/skyfield/angles.py @@ -32,6 +32,9 @@ class BaseAngle(object): elif hours is not None: self._radians = hours * _from_hours + def __format__(self, format_spec): + return self.d...
Try giving angles a .__format__() method
py
diff --git a/beakerx/beakerx/bkr2ipynb.py b/beakerx/beakerx/bkr2ipynb.py index <HASH>..<HASH> 100644 --- a/beakerx/beakerx/bkr2ipynb.py +++ b/beakerx/beakerx/bkr2ipynb.py @@ -19,6 +19,7 @@ import sys import json import nbformat import argparse +import os from nbformat.v4 import new_notebook, new_code_cell, new_mark...
#<I> fixed filename parsing in bkr2ipynb (#<I>)
py
diff --git a/bedup/platform/btrfs.py b/bedup/platform/btrfs.py index <HASH>..<HASH> 100644 --- a/bedup/platform/btrfs.py +++ b/bedup/platform/btrfs.py @@ -534,6 +534,7 @@ def read_root_tree(volume_fd): # shouldn't be necessary. sk.min_objectid = sh.objectid + sk.min_type = max(lib.BTRFS_R...
Prevent a potential loop reading the tree of volume roots.
py
diff --git a/eveonline/forms.py b/eveonline/forms.py index <HASH>..<HASH> 100644 --- a/eveonline/forms.py +++ b/eveonline/forms.py @@ -16,6 +16,13 @@ class UpdateKeyForm(forms.Form): api_id = forms.CharField(max_length=254, required=True, label="Key ID") api_key = forms.CharField(max_length=254, required=Tr...
Ensure entered api ID is int Auth accepts these values in either order for building the model, but incorrectly assigns the vcode instead of ID to character models if entered incorrectly which can break certain functions. This is an added layer of stupid-protection to make sure they put the API ID (a number) in the ...
py
diff --git a/tutorials/mnist_blackbox.py b/tutorials/mnist_blackbox.py index <HASH>..<HASH> 100644 --- a/tutorials/mnist_blackbox.py +++ b/tutorials/mnist_blackbox.py @@ -234,10 +234,10 @@ def main(argv=None): print("Training the substitute model.") # Train substitute using method from https://arxiv.org/abs...
pep8 for MNIST black-box tutorial
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -80,6 +80,7 @@ class GeneratePTH(Command): 'exec(%r)' % sh.read().replace(' ', ' ') ) + setup( name='pytest-cov', version='2.4.0',
fix flake8 E<I> expected 2 blank lines after class or function definition
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup +from setuptools import setup, find_packages def readme(): with open('README.rst') as f: @@ -23,7 +23,7 @@ setup(name='climlab', author='Brian E. J. Rose', autho...
setup.py now uses find_packages() so all submodules are properly installed.
py
diff --git a/tagging_ext/views.py b/tagging_ext/views.py index <HASH>..<HASH> 100644 --- a/tagging_ext/views.py +++ b/tagging_ext/views.py @@ -37,7 +37,8 @@ def get_model_counts(tagged_models, tag): model_counts = [] for model in tagged_models: model['count'] = model['query'](tag).count() - mo...
Made it so that only model types with tags attached show up in the sidebar
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,8 @@ class Mock(MagicMock): def __getattr__(cls, name): return Mock() -MOCK_MODULES = ['gi.repository', 'Gtk', 'GObject', 'sorting', 'choice', 'scipy', 'numpy', 'graph_tool'] +MOCK...
Fixed error on read the docs
py
diff --git a/host/tests/test_BitLogic.py b/host/tests/test_BitLogic.py index <HASH>..<HASH> 100644 --- a/host/tests/test_BitLogic.py +++ b/host/tests/test_BitLogic.py @@ -188,11 +188,25 @@ class TestBitLogic(unittest.TestCase): def test_init_to_zero(self): bl = BitLogic(55) self.assertEqual(bl,...
ENH: more tests for BitLogic
py
diff --git a/twine/cli.py b/twine/cli.py index <HASH>..<HASH> 100644 --- a/twine/cli.py +++ b/twine/cli.py @@ -17,6 +17,9 @@ from __future__ import unicode_literals import argparse import pkg_resources +import requests +import pkginfo + import twine @@ -24,13 +27,23 @@ def _registered_commands(group='twine.reg...
Print dependency versions with twine --version
py
diff --git a/phypno/viz/plot_2d.py b/phypno/viz/plot_2d.py index <HASH>..<HASH> 100644 --- a/phypno/viz/plot_2d.py +++ b/phypno/viz/plot_2d.py @@ -38,6 +38,7 @@ class Viz2(Viz): min_c, max_c = limits_c dat = (dat - min_c) / (max_c - min_c) + dat = dat.T # time on x-axis, channels on y-ax...
transpose 2d topo, but it needs to be improved
py
diff --git a/ovp_search/helpers.py b/ovp_search/helpers.py index <HASH>..<HASH> 100644 --- a/ovp_search/helpers.py +++ b/ovp_search/helpers.py @@ -1,7 +1,13 @@ from haystack import connection_router, connections +from haystack.inputs import Raw def is_whoosh_backend(): backend_alias = connection_router.for_read(...
Add whoosh_raw helper
py
diff --git a/tests/test_constantq.py b/tests/test_constantq.py index <HASH>..<HASH> 100644 --- a/tests/test_constantq.py +++ b/tests/test_constantq.py @@ -112,11 +112,6 @@ def test_hybrid_cqt(): # Check for numerical comparability assert np.mean(np.abs(C1 - C2)) < 1e-3 - # Hop size not long enoug...
remove hybrid_cqt hop length test hybrid_cqt uses cqt for the part where hop size matters anyway.
py
diff --git a/st_reg/consistency.py b/st_reg/consistency.py index <HASH>..<HASH> 100644 --- a/st_reg/consistency.py +++ b/st_reg/consistency.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- """Module de validation the states number""" -import states.ac as ac +import sys + +if sys.version >= '3': + import .states.ac as...
testing imports for python 3
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -79,6 +79,18 @@ class PysswordsTests(unittest.TestCase): credentials = self.database.credentials self.assertIn(credential.name, (c.name for c in credentials)) + def test_add_credentia...
Test database gpg encrypt uses AES<I> encryption algorithm
py
diff --git a/torchvision/datasets/voc.py b/torchvision/datasets/voc.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/voc.py +++ b/torchvision/datasets/voc.py @@ -74,7 +74,7 @@ class VOCSegmentation(data.Dataset): download=False, transform=None, target_trans...
Expand user path for PASCAL VOC (#<I>)
py
diff --git a/pip_accel/tests.py b/pip_accel/tests.py index <HASH>..<HASH> 100644 --- a/pip_accel/tests.py +++ b/pip_accel/tests.py @@ -723,7 +723,11 @@ class PipAccelTestCase(unittest.TestCase): # removing any (reverse) dependencies (we don't actually want to # break the system, thank you very much :-...
Use custom prompt in sudo call from test suite
py
diff --git a/serveit/server.py b/serveit/server.py index <HASH>..<HASH> 100644 --- a/serveit/server.py +++ b/serveit/server.py @@ -129,11 +129,19 @@ class ModelServer(object): return exception_log_and_respond(e, logger, 'Unable to make prediction', 500) logger.debug(prediction) ...
Add support for chaining postprocessor callbacks
py
diff --git a/glue_vispy_viewers/volume/volume_visual.py b/glue_vispy_viewers/volume/volume_visual.py index <HASH>..<HASH> 100644 --- a/glue_vispy_viewers/volume/volume_visual.py +++ b/glue_vispy_viewers/volume/volume_visual.py @@ -168,6 +168,7 @@ class MultiVolumeVisual(VolumeVisual): index = self.volumes[...
Force downsample=1 after shader update otherwise in some cases the resulting rendering is downsampled
py
diff --git a/sounddrizzle.py b/sounddrizzle.py index <HASH>..<HASH> 100644 --- a/sounddrizzle.py +++ b/sounddrizzle.py @@ -30,10 +30,10 @@ def main(args): output = get_filename_for_track(args, client, track) log.info('Downloading %s to %s' % (track.title, output)) - # r = requests.get(stream.location) - ...
Oops, had a few important things commeted out!
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup(name="landsat", license="CCO", platforms="Posix; MacOS X; Windows", install_requires=[ - "GDAL==1.11.0", + "GDAL>=1.10.0", "elasticsearch==1.1.1", ...
reduce required GDAL to <I> not sure if this will cause runtime problems, but installing gdal can be a bear so it would be nice to use the version shipping in ubuntu <I> (<I>)
py
diff --git a/luma/led_matrix/device.py b/luma/led_matrix/device.py index <HASH>..<HASH> 100644 --- a/luma/led_matrix/device.py +++ b/luma/led_matrix/device.py @@ -134,7 +134,7 @@ class sevensegment(object): data = bytearray(self.segment_mapper(buf, notfound=self.undefined)).ljust(self._bufsize, b'\0') ...
Raise error on but, not (potentially) unset self attribute
py
diff --git a/emase/EMfactory.py b/emase/EMfactory.py index <HASH>..<HASH> 100755 --- a/emase/EMfactory.py +++ b/emase/EMfactory.py @@ -117,14 +117,6 @@ class EMfactory: elif model == 4: self.probability.multiply(self.allelic_expression, axis=APM.Axis.READ) self.probability.normalize_r...
[kbchoi] Minor change (Don't bother)
py
diff --git a/pymzn/mzn/output.py b/pymzn/mzn/output.py index <HASH>..<HASH> 100644 --- a/pymzn/mzn/output.py +++ b/pymzn/mzn/output.py @@ -54,6 +54,8 @@ class Solutions: pass def __len__(self): + if self._keep: + self._fetch_all() return self._n_solns def __iter__(s...
output: fetch all in len if keeping solutions
py
diff --git a/tests/integration/modules/sysmod.py b/tests/integration/modules/sysmod.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/sysmod.py +++ b/tests/integration/modules/sysmod.py @@ -34,7 +34,7 @@ class SysModuleTest(integration.ModuleCase): continue if not isinstance(d...
Fix the `sysmod` examples regular expression to accept both `examples` and `Examples`.
py
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py index <HASH>..<HASH> 100644 --- a/pmagpy/new_builder.py +++ b/pmagpy/new_builder.py @@ -1520,6 +1520,7 @@ class MagicDataFrame(object): # keep any row with a unique index cond1 = ~self.df.index.duplicated(keep=False) # or with actual ...
fix MagicDataFrame.drop_duplicate_cols if a col_name is missing
py
diff --git a/tests/test_client.py b/tests/test_client.py index <HASH>..<HASH> 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -109,7 +109,7 @@ def test_client_broken_cert_bundle(monkeypatch): assert "Could not find a suitable TLS CA certificate bundle, invalid path: /does/not/exist" in str(excinfo....
Add test for a generic request error in case of oauth requests.
py
diff --git a/rc_django/cache_implementation/memcache.py b/rc_django/cache_implementation/memcache.py index <HASH>..<HASH> 100644 --- a/rc_django/cache_implementation/memcache.py +++ b/rc_django/cache_implementation/memcache.py @@ -32,7 +32,7 @@ class MemcachedCache(object): if not data: return Non...
Fix ascii' codec can't decode byte MUWM-<I>
py
diff --git a/pyqode/python/__init__.py b/pyqode/python/__init__.py index <HASH>..<HASH> 100644 --- a/pyqode/python/__init__.py +++ b/pyqode/python/__init__.py @@ -6,4 +6,4 @@ of additional modes and panels for the frontend and by supplying dedicated workers for the backend. """ -__version__ = '2.2.0-dev' +__version...
bump package version to <I>
py
diff --git a/insteonplm/plm.py b/insteonplm/plm.py index <HASH>..<HASH> 100644 --- a/insteonplm/plm.py +++ b/insteonplm/plm.py @@ -311,7 +311,7 @@ class PLM(asyncio.Protocol): for addr in self._aldb_response_queue: retries = self._aldb_response_queue[addr]['retries'] if retries < 5: -...
experiment with delays in auto discovery for accuracy
py
diff --git a/aiger/aig.py b/aiger/aig.py index <HASH>..<HASH> 100644 --- a/aiger/aig.py +++ b/aiger/aig.py @@ -186,8 +186,18 @@ class AIG: next(sim) return [sim.send(inputs) for inputs in input_seq] - def cutlatches(self, latches, check_postcondition=True): - l_map = {n: (cmn._fresh(), ini...
Add support for controlling latch renaming
py
diff --git a/benchbuild/utils/actions.py b/benchbuild/utils/actions.py index <HASH>..<HASH> 100644 --- a/benchbuild/utils/actions.py +++ b/benchbuild/utils/actions.py @@ -21,7 +21,7 @@ import os import sys import textwrap import traceback -from typing import (Any, ClassVar, TypeVar, Callable, List, Iterable, overloa...
utils/actions: fix linter errors
py
diff --git a/grimoire_elk/enriched/dockerhub.py b/grimoire_elk/enriched/dockerhub.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/dockerhub.py +++ b/grimoire_elk/enriched/dockerhub.py @@ -137,13 +137,15 @@ class DockerHubEnrich(Enrich): url = self.elastic.index_url + '/items/_bulk' - logg...
[enriched-dockerhub] Change to 'format()' in the logs
py
diff --git a/src/mirteFile.py b/src/mirteFile.py index <HASH>..<HASH> 100644 --- a/src/mirteFile.py +++ b/src/mirteFile.py @@ -8,6 +8,7 @@ def yaml(): import os import sys import copy +import errno import os.path import msgpack import logging @@ -183,11 +184,14 @@ def _parse_mirteFile(path, logger=None): ...
mirteFile: handle non-writable directories better
py
diff --git a/cumulusci/core/config/OrgConfig.py b/cumulusci/core/config/OrgConfig.py index <HASH>..<HASH> 100644 --- a/cumulusci/core/config/OrgConfig.py +++ b/cumulusci/core/config/OrgConfig.py @@ -29,6 +29,7 @@ class OrgConfig(BaseConfig): super(OrgConfig, self).__init__(config) def refresh_oauth_toke...
Refresh oauth token more reliably Refresh oauth token more reliably in the face of Salesforce timeouts.
py
diff --git a/modeltranslation/tests/__init__.py b/modeltranslation/tests/__init__.py index <HASH>..<HASH> 100644 --- a/modeltranslation/tests/__init__.py +++ b/modeltranslation/tests/__init__.py @@ -6,6 +6,7 @@ Tests have to be run with modeltranslation.tests.settings: TODO: Merge autoregister tests from django-modelt...
Handled non-empty test media root directory deletion.
py
diff --git a/benchexec/tools/spf.py b/benchexec/tools/spf.py index <HASH>..<HASH> 100644 --- a/benchexec/tools/spf.py +++ b/benchexec/tools/spf.py @@ -28,10 +28,11 @@ class Tool(benchexec.tools.template.BaseTool): REQUIRED_PATHS = [ "jpf-core/bin/jpf", "jpf-core/build", + ...
fixed spf.py The REQUIRED_PATH object was not containing all necessary files. The site.properties should not be included.
py
diff --git a/rawdisk/plugins/filesystems/ntfs/bpb.py b/rawdisk/plugins/filesystems/ntfs/bpb.py index <HASH>..<HASH> 100644 --- a/rawdisk/plugins/filesystems/ntfs/bpb.py +++ b/rawdisk/plugins/filesystems/ntfs/bpb.py @@ -52,8 +52,15 @@ class Bpb(RawStruct): | http://homepage.ntlworld.com\ /jonathan.deboynepolla...
Changed __init__ signature of Bpb class Allow to supply filename, offset and length
py
diff --git a/ravel.py b/ravel.py index <HASH>..<HASH> 100644 --- a/ravel.py +++ b/ravel.py @@ -2368,7 +2368,6 @@ def _message_interface_dispatch(connection, message, bus) : #end if #end if #end if - del message, connection # circularity somewhere!? return \ result #end _mes...
My fixes for reference circularities might not work in presence of async method calls. Revert until I can come up with a better fix.
py
diff --git a/examples/qrcode_text/svg_text.py b/examples/qrcode_text/svg_text.py index <HASH>..<HASH> 100644 --- a/examples/qrcode_text/svg_text.py +++ b/examples/qrcode_text/svg_text.py @@ -12,6 +12,7 @@ import io import re from xml.sax.saxutils import escape import segno +from segno.writers import _color_to_webcol...
Use "dark" as font color
py
diff --git a/estnltk/storage/postgres/collection.py b/estnltk/storage/postgres/collection.py index <HASH>..<HASH> 100755 --- a/estnltk/storage/postgres/collection.py +++ b/estnltk/storage/postgres/collection.py @@ -473,7 +473,7 @@ class PgCollection: return count_rows(self.storage, self.name) - def sele...
Renaming select_by_key_query -> _select_by_key_query
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import sys from setuptools import setup -version = '0.1' +version = '0.2' setup( name='pyt', @@ -15,7 +15,7 @@ setup( author='Jay Marcyes', author_email='jay@marcyes.com', url='http://gi...
fixes problem with the setup.py file
py
diff --git a/localshop/apps/packages/models.py b/localshop/apps/packages/models.py index <HASH>..<HASH> 100644 --- a/localshop/apps/packages/models.py +++ b/localshop/apps/packages/models.py @@ -140,6 +140,7 @@ class ReleaseFile(models.Model): ('bdist_rpm', 'RPM'), ('bdist_dumb', 'bdist_dumb'), ...
Fixing #<I> Added bdist_wheel to release file choices
py
diff --git a/pdb.py b/pdb.py index <HASH>..<HASH> 100644 --- a/pdb.py +++ b/pdb.py @@ -121,7 +121,9 @@ class Pdb(pdb.Pdb, ConfigurableClass): def _disable_pytest_capture_maybe(self): try: - import py + import py.test + py.test.config # force to raise ImportError if pytes...
fix a bug in case py is installed but pytest is not
py
diff --git a/inspire_dojson/hep/rules/bd5xx.py b/inspire_dojson/hep/rules/bd5xx.py index <HASH>..<HASH> 100644 --- a/inspire_dojson/hep/rules/bd5xx.py +++ b/inspire_dojson/hep/rules/bd5xx.py @@ -419,15 +419,13 @@ def _desy_bookkeeping2marc(self, key, value): @hep.over('_private_notes', '^595.H') +@utils.flatten +@...
hep: refactor _private_notes_hal rule
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ setup( packages=find_packages(), zip_safe=False, install_requires=[ + 'django', 'django-paging>=0.2.2', 'django-indexer==0.2.1', 'uuid', @@ -41,4 +42,4 @@ setup( ...
list django as a requirement so our distribution is correct
py
diff --git a/wafer/tickets/tests/test_views.py b/wafer/tickets/tests/test_views.py index <HASH>..<HASH> 100644 --- a/wafer/tickets/tests/test_views.py +++ b/wafer/tickets/tests/test_views.py @@ -250,6 +250,22 @@ class TicketsViewSetTests(TestCase): self.assertEqual(ticket.type, ticket_type) self.asser...
Add test for attempting to create a ticket without a barcode.
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -8666,7 +8666,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): elif element_type == ELEM_TYPE_TABLE: element = element # type: Table fra...
Added new member variable for Table Element - table_frame - has the Frame Widget that the table is withihn
py
diff --git a/pyramid_webassets/__init__.py b/pyramid_webassets/__init__.py index <HASH>..<HASH> 100644 --- a/pyramid_webassets/__init__.py +++ b/pyramid_webassets/__init__.py @@ -339,7 +339,8 @@ def add_assets_global(event): def includeme(config): config.add_subscriber(add_assets_global, 'pyramid.events.BeforeRen...
Pass un-molested settings to add_static_view Pyramid users expect to be able to register static views with asset specs and then generate static urls with asset specs. Since webassets needs the spec to be resolved before we pass it the configuration, we should pass the original settings to the `add_static_view` call so...
py
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -1192,7 +1192,7 @@ def securitygroupid(vm_): ) if securitygroupid_list: if isinstance(securitygroupid_list, list): - securitygroupid...
fix the security groups that get applied to a new instance
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup( classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], install_requires=['numpy'], - tests_require=['nose'], + tests_...
setup.py: add required 'ddt' package to tests
py
diff --git a/admin_tools/dashboard/dashboards.py b/admin_tools/dashboard/dashboards.py index <HASH>..<HASH> 100644 --- a/admin_tools/dashboard/dashboards.py +++ b/admin_tools/dashboard/dashboards.py @@ -150,18 +150,14 @@ class AppIndexDashboard(Dashboard): AppIndexDashboard.__init__(self, app_title, mo...
One example is modified to demonstrate new api.
py
diff --git a/restclients_core/tests/models/test_base.py b/restclients_core/tests/models/test_base.py index <HASH>..<HASH> 100644 --- a/restclients_core/tests/models/test_base.py +++ b/restclients_core/tests/models/test_base.py @@ -140,7 +140,7 @@ class TestModelBase(TestCase): def match_count(): c...
Seeing if repr instead of str will work in python <I>
py
diff --git a/src/ossos/core/ossos/__version__.py b/src/ossos/core/ossos/__version__.py index <HASH>..<HASH> 100644 --- a/src/ossos/core/ossos/__version__.py +++ b/src/ossos/core/ossos/__version__.py @@ -1 +1 @@ -version = "0.5.3" +version = "0.5.4"
Corrected setting of attribute error. bug fix released.
py
diff --git a/pymatgen/analysis/defects/core.py b/pymatgen/analysis/defects/core.py index <HASH>..<HASH> 100644 --- a/pymatgen/analysis/defects/core.py +++ b/pymatgen/analysis/defects/core.py @@ -401,6 +401,19 @@ class DefectEntry(MSONable): """ return self.defect.name + def copy(self): + "...
add copy method for DefectEntry class
py
diff --git a/django_payzen/app_settings.py b/django_payzen/app_settings.py index <HASH>..<HASH> 100644 --- a/django_payzen/app_settings.py +++ b/django_payzen/app_settings.py @@ -10,8 +10,8 @@ from django.conf import settings PAYZEN_REQUEST_URL = 'https://secure.payzen.eu/vads-payment/' VADS_CONTRIB = 'django-payze...
Set essential payzen settings as mandatory for django_payzen.
py
diff --git a/tests/site_test.py b/tests/site_test.py index <HASH>..<HASH> 100644 --- a/tests/site_test.py +++ b/tests/site_test.py @@ -191,6 +191,22 @@ class SiteCollectionFilterTestCase(unittest.TestCase): numpy.testing.assert_array_equal(data_expanded, data_expanded_expected) +class SiteCollectionIterTes...
tests/site: added a test for SiteCollection iter
py
diff --git a/i3pystatus/core/io.py b/i3pystatus/core/io.py index <HASH>..<HASH> 100644 --- a/i3pystatus/core/io.py +++ b/i3pystatus/core/io.py @@ -51,7 +51,9 @@ class StandaloneIO(IOHandler): """ n = -1 - proto = [{"version":1,"click_events":True}, "[", "[]", ",[]",] + proto = [ + {"version": 1...
PEP 8 (I'm bored): core/io
py
diff --git a/src/googleclouddebugger/version.py b/src/googleclouddebugger/version.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/version.py +++ b/src/googleclouddebugger/version.py @@ -4,4 +4,4 @@ # The major version should only change on breaking changes. Minor version # changes go between regular upda...
Increment python opensource version to prepare for release with logpoint rate limiting ------------- Created by MOE: <URL>
py
diff --git a/coursera/downloaders.py b/coursera/downloaders.py index <HASH>..<HASH> 100644 --- a/coursera/downloaders.py +++ b/coursera/downloaders.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import logging import os import requests @@ -239,7 +241,7 @@ class NativeDownloader(Downloader): ...
coursera: downloaders: Try to improve compatibility with Python 3.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -108,7 +108,6 @@ if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv): setuptools_args = {} install_requires = setuptools_args['install_requires'] = [ - 'ipython>=4.0.0', 'ipykernel>=4.5.1', ...
Fixes the dependency of IPython version when Python version is < <I> IPython <I>+ does not support Python <I>, <I>, <I>, or <I>, but accordingly to the current specification, it is a valid requirement. This patch makes IPython <I>+ valid requirement only for Python >= <I>.
py
diff --git a/legit/scm.py b/legit/scm.py index <HASH>..<HASH> 100644 --- a/legit/scm.py +++ b/legit/scm.py @@ -133,7 +133,10 @@ def smart_merge(branch, allow_rebase=True): if allow_rebase: verb = 'merge' if merges.count('commit') else 'rebase' else: - verb = 'merge' + if git_pull_rebase...
legit sync can be configured to always rebase. legit sync will always rebase if both of the following conditions met: 1. legit.smartMerge is **false** 2. pull.rebase is **true** fix #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setup( "wagtail>=0.8.7", "Django>=1.7.1", "google-api-python-client==1.5.0", - "oauth2client==1.5.2", + "oauth2client<3,>=2.0.0", "wagtailfontawesome" ], )
pin oauth2client to version that google-api-python-client needs google-api-python-client <I> has a dependency on oauth2client><I>,<=<I> while wagalytics had a dependency on oauth2client <I>.
py
diff --git a/taxtastic/subcommands/reroot.py b/taxtastic/subcommands/reroot.py index <HASH>..<HASH> 100644 --- a/taxtastic/subcommands/reroot.py +++ b/taxtastic/subcommands/reroot.py @@ -1,5 +1,7 @@ """Reroots a reference package""" +import tempfile import logging +import os from Bio import Phylo @@ -30,9 +32,11...
Writing the rerooted tree to a temporary file first. This will protect the original tree from getting truncated if writing the tree out fails.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ setup(name='more.transaction', zip_safe=False, install_requires=[ 'setuptools', - 'morepath >= 0.4', + 'morepath', 'transaction', ], extras_require =...
Loosen this for now.
py
diff --git a/sir/pythia/pythia.py b/sir/pythia/pythia.py index <HASH>..<HASH> 100755 --- a/sir/pythia/pythia.py +++ b/sir/pythia/pythia.py @@ -57,6 +57,7 @@ class TestInput(object): class TestCase(object): @staticmethod def from_json(num, jsn): + assert 'command' in jsn, "test case definition must spe...
added assertion to ensure test cases contain a command
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,6 @@ setup(name='numina', author='Sergio Pascual', author_email='sergiopr@fis.ucm.es', url='http://guaix.fis.ucm.es/projects/emir', - download_url='ftp://astrax.fis.ucm.es/pub/software/numin...
Removing download_url, by default from PyPI
py
diff --git a/master/setup.py b/master/setup.py index <HASH>..<HASH> 100755 --- a/master/setup.py +++ b/master/setup.py @@ -385,15 +385,11 @@ except ImportError: pass else: # dependencies - if sys.version_info[0] == 2 and sys.version_info[1] <= 5: - zi = 'zope.interface >= 3.6.1' # the newest that ...
fix master's dependencies * Python <I> is not supported any more, hence to need to handle that * 'future' module is required (as it brings in 'builtins' module), while it was not mentioned
py
diff --git a/db/db.py b/db/db.py index <HASH>..<HASH> 100644 --- a/db/db.py +++ b/db/db.py @@ -1205,7 +1205,7 @@ class DB(object): q = self._assign_limit(q, limit) return pd.io.sql.read_sql(q, self.con) - def query_from_file(self, filename, data, union=True, limit=None): + def query_from_f...
Fixing query_from_file call method in db/db.py The argument "data" in method definition is defined as required, but the docstring says it is optinonal. Refactored file read call at the end of method. The best pratice is to close file just after use.
py
diff --git a/test/worker_test.py b/test/worker_test.py index <HASH>..<HASH> 100644 --- a/test/worker_test.py +++ b/test/worker_test.py @@ -1358,6 +1358,17 @@ class UnimportedTask(luigi.Task): self.assertTrue(self.assistant.run()) self.assertEqual(list(self.sch.task_list('DONE', '').keys()), [t...
Adds a test that task load failures trackbacks are sent to the scheduler
py
diff --git a/src/passa/cli/options.py b/src/passa/cli/options.py index <HASH>..<HASH> 100644 --- a/src/passa/cli/options.py +++ b/src/passa/cli/options.py @@ -46,9 +46,12 @@ class Option(object): class ArgumentGroup(object): - def __init__(self, name, parser=None, is_mutually_exclusive=False, required=None, opt...
Convert value to dict to make Cerberus happy
py
diff --git a/samcli/commands/init/init_templates.py b/samcli/commands/init/init_templates.py index <HASH>..<HASH> 100644 --- a/samcli/commands/init/init_templates.py +++ b/samcli/commands/init/init_templates.py @@ -5,6 +5,7 @@ Manages the set of application templates. import itertools import json import os +import l...
Catch exceptions when checking git executables Had a bug where the wrong executable name would lead to a premature exit. This change fixes that.
py
diff --git a/pyramid_orb/services/model.py b/pyramid_orb/services/model.py index <HASH>..<HASH> 100644 --- a/pyramid_orb/services/model.py +++ b/pyramid_orb/services/model.py @@ -2,7 +2,7 @@ import orb import projex.text from orb import Query as Q -from pyramid.httpexceptions import HTTPBadRequest, HTTPForbidden +f...
returning HTTPNotFound when trying to access a model that does not exist
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -44,6 +44,7 @@ except NameError: from glue import git_version +from glue import iterutils from glue import segments from glue.lal import LIGOTimeGPS from ...
Add inplace kwarg to ifocut
py