diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/twine/commands/upload.py b/twine/commands/upload.py index <HASH>..<HASH> 100644 --- a/twine/commands/upload.py +++ b/twine/commands/upload.py @@ -20,6 +20,7 @@ import hashlib import os.path import subprocess import sys +import itertools try: from urlparse import urlparse, urlunparse @@ -57,18 +5...
Use groupby rather than a forloop.
py
diff --git a/reana_commons/version.py b/reana_commons/version.py index <HASH>..<HASH> 100755 --- a/reana_commons/version.py +++ b/reana_commons/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.8.2" +__version__ = "0.8.3a1"
release: <I>a1
py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index <HASH>..<HASH> 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5182,7 +5182,7 @@ class NDFrame(PandasObject, indexing.IndexingMixin): has the right type of data in it. For negative values of `n`, this function re...
Add absolute value to head() and tail() docstrings for negative values of n (#<I>) * add absolute value to head and tail docstrings * remove minus sign because n is already negative
py
diff --git a/scrubadub/scrubbers.py b/scrubadub/scrubbers.py index <HASH>..<HASH> 100644 --- a/scrubadub/scrubbers.py +++ b/scrubadub/scrubbers.py @@ -246,12 +246,12 @@ class Scrubber(object): # Figures out which detectors have iter_filth_documents and applies to them if isinstance(documents, dict):...
Fix types for document_names and text
py
diff --git a/spyder/plugins/statusbar/plugin.py b/spyder/plugins/statusbar/plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/statusbar/plugin.py +++ b/spyder/plugins/statusbar/plugin.py @@ -228,4 +228,8 @@ class StatusBar(SpyderPluginV2): def before_mainwindow_visible(self): """Perform actions b...
Set the statusbar visible once the mainwindow is loaded to avoid glitches
py
diff --git a/safe/metadata/property/dictionary_property.py b/safe/metadata/property/dictionary_property.py index <HASH>..<HASH> 100644 --- a/safe/metadata/property/dictionary_property.py +++ b/safe/metadata/property/dictionary_property.py @@ -48,13 +48,19 @@ class DictionaryProperty(BaseProperty): for k, v...
Preserve datetime in provenance.
py
diff --git a/slug_preview/models.py b/slug_preview/models.py index <HASH>..<HASH> 100644 --- a/slug_preview/models.py +++ b/slug_preview/models.py @@ -60,6 +60,12 @@ class SlugPreviewField(models.SlugField): setattr(instance, self.name, slug) return slug + def south_field_triple(self): + f...
Fix south support, if you still need this
py
diff --git a/pyethereum/blocks.py b/pyethereum/blocks.py index <HASH>..<HASH> 100644 --- a/pyethereum/blocks.py +++ b/pyethereum/blocks.py @@ -15,7 +15,7 @@ GENESIS_GAS_LIMIT = 10 ** 6 BLOCK_REWARD = 10 ** 18 BLOCK_DIFF_FACTOR = 1024 GASLIMIT_EMA_FACTOR = 1024 -INITIAL_MIN_GAS_PRICE = 10 ** 15 +GENESIS_MIN_GAS_PRICE...
set GENESIS_MIN_GAS_PRICE = 0
py
diff --git a/bcbio/cwl/create.py b/bcbio/cwl/create.py index <HASH>..<HASH> 100644 --- a/bcbio/cwl/create.py +++ b/bcbio/cwl/create.py @@ -707,8 +707,9 @@ def _to_cwlfile_with_indexes(val, get_retriever): return _item_to_cwldata(val["base"], get_retriever) else: # Standard named set of indices, l...
CWL: always create tarball of snpeff, even if single file
py
diff --git a/tests/test_segmentation.py b/tests/test_segmentation.py index <HASH>..<HASH> 100644 --- a/tests/test_segmentation.py +++ b/tests/test_segmentation.py @@ -101,8 +101,8 @@ class TestModule_joint_label_fusion(unittest.TestCase): seglist[i] = seg r = 2 pp = ants.joint_label_fusio...
WIP: test jlf failure
py
diff --git a/openquake/commonlib/riskmodels.py b/openquake/commonlib/riskmodels.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/riskmodels.py +++ b/openquake/commonlib/riskmodels.py @@ -17,7 +17,8 @@ class VulnerabilityNode(LiteralNode): validators = valid.parameters( vulnerabilitySetID=valid.nam...
Added single_assets to the list of valid asset categories
py
diff --git a/bcbio/distributed/transaction.py b/bcbio/distributed/transaction.py index <HASH>..<HASH> 100644 --- a/bcbio/distributed/transaction.py +++ b/bcbio/distributed/transaction.py @@ -127,7 +127,11 @@ def _move_file_with_sizecheck(tx_file, final_file): shutil.move(tx_file, tmp_file) # Validate that f...
Transaction: avoid race conditions Transactional size checks can fail when multiple processes are creating and validing the same file and it gets moved in one process while the other still needs to check. This skips the final check in those cases to avoid failing out entirely.
py
diff --git a/fireplace/game.py b/fireplace/game.py index <HASH>..<HASH> 100644 --- a/fireplace/game.py +++ b/fireplace/game.py @@ -60,7 +60,7 @@ class BaseGame(Entity): @property def all_entities(self): - return CardList(chain(self.entities, self.hands, self.decks, self.graveyard)) + return chain(self.entities,...
Drop support for Game.filter() (Game.all_entities as a CardList)
py
diff --git a/aegean.py b/aegean.py index <HASH>..<HASH> 100755 --- a/aegean.py +++ b/aegean.py @@ -1242,10 +1242,11 @@ def refit_islands(group, stage, outerclip, istart): # do the fit # if the pixel beam is not valid, then recalculate using the location of the last source to have a valid psf - ...
bugfix: priorized fitting no-longer complains about pixbeam when it shouldn't
py
diff --git a/proso/release.py b/proso/release.py index <HASH>..<HASH> 100644 --- a/proso/release.py +++ b/proso/release.py @@ -1 +1 @@ -VERSION = '1.2.0-SNAPSHOT' +VERSION = '1.2.0'
release a new version <I>
py
diff --git a/pagedown/widgets.py b/pagedown/widgets.py index <HASH>..<HASH> 100644 --- a/pagedown/widgets.py +++ b/pagedown/widgets.py @@ -46,7 +46,7 @@ class PagedownWidget(forms.Textarea): """ % { 'attrs': flatatt(final_attrs), 'body': conditional_escape(force_unicode(va...
Fixed small problem in widgets for #<I>
py
diff --git a/glim/prototype/app/config/default.py b/glim/prototype/app/config/default.py index <HASH>..<HASH> 100644 --- a/glim/prototype/app/config/default.py +++ b/glim/prototype/app/config/default.py @@ -4,11 +4,10 @@ import glim.paths config = { 'extensions' : { - # 'gredis' : { # 'default' : { # '...
set default port of redis extension to <I>
py
diff --git a/bokeh/properties.py b/bokeh/properties.py index <HASH>..<HASH> 100644 --- a/bokeh/properties.py +++ b/bokeh/properties.py @@ -478,12 +478,17 @@ class MetaHasProps(type): if name in new_class_attrs: raise RuntimeError("Two property generators both created %s.%s" % (class_name, ...
properties.py: Comments and small bugfix in add_prop We should names.add even a non-BasicProperty, though we don't have any non-BasicProperty right now. Better comment the existing code's behavior (that containers with refs are not in the set of containers), though this behavior seems weird.
py
diff --git a/omero_marshal/decode/decoders/channel.py b/omero_marshal/decode/decoders/channel.py index <HASH>..<HASH> 100644 --- a/omero_marshal/decode/decoders/channel.py +++ b/omero_marshal/decode/decoders/channel.py @@ -28,10 +28,7 @@ class Channel201501Decoder(Decoder): self.set_property(v, 'red', data.get...
Support creation of new Channel-LogicalChannel structures Using the object constructor with a `None` identifier is supported so this is actually a fairly elegant way of handling both the round trip and brand new object use cases.
py
diff --git a/nodeconductor/cost_tracking/tasks.py b/nodeconductor/cost_tracking/tasks.py index <HASH>..<HASH> 100644 --- a/nodeconductor/cost_tracking/tasks.py +++ b/nodeconductor/cost_tracking/tasks.py @@ -46,21 +46,3 @@ def _update_ancestor_consumed(ancestor): if isinstance(descendant.sco...
Remove leftovers - wal-<I>
py
diff --git a/src/astral/__init__.py b/src/astral/__init__.py index <HASH>..<HASH> 100644 --- a/src/astral/__init__.py +++ b/src/astral/__init__.py @@ -27,8 +27,9 @@ timezone, latitude, longitude and elevation. The lookups can be perfomed using t For example :: - >>> from astral.geocoder import lookup - >>> l...
Updated example to use new database function
py
diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -1135,9 +1135,7 @@ class I...
Remove data-type and sort from flavor column Due to the flavor column in the instances table having a data-type of size, the sortable plugin tries to sort it by a size parser. Removing the sorter for that column seems the sanest decision as the end-user may expect the sorting to be done on cpu or disk or any number of...
py
diff --git a/intranet/settings/base.py b/intranet/settings/base.py index <HASH>..<HASH> 100644 --- a/intranet/settings/base.py +++ b/intranet/settings/base.py @@ -232,6 +232,9 @@ EIGHTH_BLOCK_DATE_FORMAT = "D, N j, Y" # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize you...
Set log level based on env vars
py
diff --git a/keepassx/db.py b/keepassx/db.py index <HASH>..<HASH> 100644 --- a/keepassx/db.py +++ b/keepassx/db.py @@ -36,6 +36,13 @@ def encode_password(password): if not isinstance(password, TEXT_TYPE): # We'll need to decode back into text and then # encode to bytes. + # First we need t...
Fix stdin not having an encoding attr IE when we run on travis.yml.
py
diff --git a/prettyplotlib/_bar.py b/prettyplotlib/_bar.py index <HASH>..<HASH> 100644 --- a/prettyplotlib/_bar.py +++ b/prettyplotlib/_bar.py @@ -95,10 +95,6 @@ def bar(*args, **kwargs): # If there are negative counts, remove the bottom axes # and add a line at y=0 if any(h < 0 for h in height.tolist())...
Update _bar.py Added legend support.
py
diff --git a/src/livedumper/dumper.py b/src/livedumper/dumper.py index <HASH>..<HASH> 100644 --- a/src/livedumper/dumper.py +++ b/src/livedumper/dumper.py @@ -197,7 +197,7 @@ class LivestreamerDumper(object): self.fd = None - def exit(self, msg=''): + def exit(self, msg=0): "Close an opened ...
If no exit msg is given, exit with success status. sys.exit('') means to exit with failure status, so the default argument should be 0. Otherwise, a successfully completed download results in apparent failure, because livedumper_cli invokes dumper.exit() on completion. Fix issue #<I>
py
diff --git a/insights/client/config.py b/insights/client/config.py index <HASH>..<HASH> 100644 --- a/insights/client/config.py +++ b/insights/client/config.py @@ -130,7 +130,7 @@ DEFAULT_OPTS = { }, 'http_timeout': { # non-CLI - 'default': 10.0 + 'default': 120.0 }, 'insecure_...
Increase http timeout (#<I>) * increase http timeout from <I>s to <I>s * mayhaps....... <I> seconds?
py
diff --git a/build_libtcod.py b/build_libtcod.py index <HASH>..<HASH> 100644 --- a/build_libtcod.py +++ b/build_libtcod.py @@ -69,9 +69,9 @@ else: if sys.platform == 'darwin': sources += walk_sources('dependencies/SDL-1.2.15/src/') + include_dirs += ['dependencies/SDL-1.2.15/include/SDL'] else: librari...
direct SDL header include dir was added to the wrong branch
py
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_timeseries.py +++ b/gwpy/tests/test_timeseries.py @@ -277,6 +277,8 @@ class TimeSeriesTestCase(TimeSeriesTestMixin, SeriesTestCase): # test multiprocessing sg2 = ts.spectrogram(...
Adding bartlett method test to timeseries unit tests.
py
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/widgets/codeeditor.py +++ b/spyder/plugins/editor/widgets/codeeditor.py @@ -2869,6 +2869,7 @@ class CodeEditor(TextEditBaseWidget): TextEditBaseWidg...
hide completionsWidget if a space is written
py
diff --git a/tests/test_contractions.py b/tests/test_contractions.py index <HASH>..<HASH> 100644 --- a/tests/test_contractions.py +++ b/tests/test_contractions.py @@ -39,3 +39,10 @@ def test_capitalized(): tokens = EN.tokenize("Ain't") assert len(tokens) == 2 assert tokens[0].string == "Are" + + +def tes...
* Add a couple more contractions tests
py
diff --git a/ooquery/ooquery.py b/ooquery/ooquery.py index <HASH>..<HASH> 100644 --- a/ooquery/ooquery.py +++ b/ooquery/ooquery.py @@ -30,7 +30,7 @@ class OOQuery(object): fields = [] for field in self._fields: table_field = self.parser.get_table_field(self.table, field) - fiel...
Don't replace '.' for '_' in field name
py
diff --git a/src/owlwatch/test/test_model.py b/src/owlwatch/test/test_model.py index <HASH>..<HASH> 100644 --- a/src/owlwatch/test/test_model.py +++ b/src/owlwatch/test/test_model.py @@ -268,6 +268,8 @@ class TestPanel(unittest.TestCase): """Test comparison between Schema properties using its compare ...
Fix broken outdated test Last test was broken because it used the old compare method output format for asserts and also didn't take into account comparison order. So it was not a problem of the test, it was just outdated.
py
diff --git a/duckduckpy/api.py b/duckduckpy/api.py index <HASH>..<HASH> 100644 --- a/duckduckpy/api.py +++ b/duckduckpy/api.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +from __init__ import __version__ from collections import namedtuple -from utils import camel_to_snake_cas...
Remove VERSION variable from api.py
py
diff --git a/src/hamster/lib/configuration.py b/src/hamster/lib/configuration.py index <HASH>..<HASH> 100644 --- a/src/hamster/lib/configuration.py +++ b/src/hamster/lib/configuration.py @@ -200,7 +200,7 @@ class GSettingsStore(gobject.GObject, Singleton): def __init__(self): gobject.GObject.__init__(se...
explicit schema_id Fixed "Using positional arguments with the GObject constructor has been deprecated"
py
diff --git a/src/xray/conventions.py b/src/xray/conventions.py index <HASH>..<HASH> 100644 --- a/src/xray/conventions.py +++ b/src/xray/conventions.py @@ -317,6 +317,7 @@ def decode_cf_variable(var, mask_and_scale=True): dimensions = var.dimensions attributes = var.attributes.copy() encoding = var.encodi...
Preserve indexing mode in decode_cf_variable
py
diff --git a/pyradio/radio.py b/pyradio/radio.py index <HASH>..<HASH> 100644 --- a/pyradio/radio.py +++ b/pyradio/radio.py @@ -11,7 +11,7 @@ import curses import logging import os import random -import signal +#import signal from sys import version as python_version, version_info from os.path import join, basename...
radio.py: removing signal from imports
py
diff --git a/rst2ansi/table.py b/rst2ansi/table.py index <HASH>..<HASH> 100644 --- a/rst2ansi/table.py +++ b/rst2ansi/table.py @@ -242,16 +242,17 @@ class TableWriter(nodes.NodeVisitor): from rst2ansi import ANSITranslator - v = ANSITranslator(self.document, termsize=(width - 2, height)) - node.children[...
Fixed empty cells crashing the table writer
py
diff --git a/py/testdir_multi_jvm/test_parse_small_nopoll.py b/py/testdir_multi_jvm/test_parse_small_nopoll.py index <HASH>..<HASH> 100644 --- a/py/testdir_multi_jvm/test_parse_small_nopoll.py +++ b/py/testdir_multi_jvm/test_parse_small_nopoll.py @@ -1,4 +1,4 @@ -import unittest, random, time +import sys, unittest, ran...
typo, removed sys accidently a couple days back
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -244,11 +244,10 @@ else: setup_args['install_requires'] = [ 'twisted >= 2.0.0', 'Jinja2', - 'simplejson' ] # Python-2.6 and up includes json - #if not py_26: - #setup_args['ins...
go back to just adding simplejson to the reqs in <I> and below
py
diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py index <HASH>..<HASH> 100644 --- a/tests/test_write_readback.py +++ b/tests/test_write_readback.py @@ -844,11 +844,15 @@ class TestPythonMatlabFormat(object): while s in names and s[0].isdigit(): s = random_str...
Fixed bug (Issue #<I>) in generating random titles for the dtype fields in the unit tests, which must be unique.
py
diff --git a/onnx/utils.py b/onnx/utils.py index <HASH>..<HASH> 100644 --- a/onnx/utils.py +++ b/onnx/utils.py @@ -133,7 +133,8 @@ def extract_model( input_path, # type: Text output_path, # type: Text input_names, # type: List[Text] - output_names # type: List[Text] + output...
Optionally to run model checker on the extracted model (#<I>) Some dynamic shape models may fail due to lack of shape information, have an option to make the script not crash. (Note: run shape inference can fix the shape info.)
py
diff --git a/issuetracker/tests/test_builtin_resolvers.py b/issuetracker/tests/test_builtin_resolvers.py index <HASH>..<HASH> 100644 --- a/issuetracker/tests/test_builtin_resolvers.py +++ b/issuetracker/tests/test_builtin_resolvers.py @@ -104,11 +104,7 @@ def pytest_funcarg__content(request): if issue_id is None: ...
Simplified test file content for builtin tracker tests
py
diff --git a/gns3server/modules/iou/__init__.py b/gns3server/modules/iou/__init__.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/iou/__init__.py +++ b/gns3server/modules/iou/__init__.py @@ -49,9 +49,10 @@ class IOU(BaseManager): def close_vm(self, vm_id, *args, **kwargs): vm = self.get_vm(vm_id...
Fix a crash in CI, making log impossible to read
py
diff --git a/test/normalize_varscan_test.py b/test/normalize_varscan_test.py index <HASH>..<HASH> 100644 --- a/test/normalize_varscan_test.py +++ b/test/normalize_varscan_test.py @@ -279,10 +279,11 @@ class ValidateDirectoriesTestCase(unittest.TestCase): def test_validateDirectories_outputDirectoryNotCreated(self)...
test output directory can't be created
py
diff --git a/indra/tests/test_cbio_client.py b/indra/tests/test_cbio_client.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_cbio_client.py +++ b/indra/tests/test_cbio_client.py @@ -73,8 +73,8 @@ def test_get_profile_data(): def test_get_ccle_cna(): profile_data = cbio_client.get_ccle_cna(['BRAF', 'AKT1'], ...
Fixed a failing test_get_ccle_cna() - wrong values for SKMEL<I>_SKIN line were being asserted
py
diff --git a/examples/hiv_example.py b/examples/hiv_example.py index <HASH>..<HASH> 100755 --- a/examples/hiv_example.py +++ b/examples/hiv_example.py @@ -1,8 +1,6 @@ #!/usr/bin/env python import sys, os, collections -sys.path.append(".") -sys.path.append("..") from nestly.nestly import * homedir = "/cs/researc...
Removed sys.path modifications.
py
diff --git a/cpp_coveralls/coverage.py b/cpp_coveralls/coverage.py index <HASH>..<HASH> 100644 --- a/cpp_coveralls/coverage.py +++ b/cpp_coveralls/coverage.py @@ -311,7 +311,7 @@ def collect(args): src_report['coverage'] = parse_gcov_file(fobj) src_files[src_path] = combine_rep...
Fixed issue with python 3 returning a view
py
diff --git a/sparc/apps/cache/cache.py b/sparc/apps/cache/cache.py index <HASH>..<HASH> 100644 --- a/sparc/apps/cache/cache.py +++ b/sparc/apps/cache/cache.py @@ -171,11 +171,16 @@ class cache(object): area.initialize() while True: try: - new = area.import_source(source) + ...
iterate cache source manually, so to be able to catch interupt signal faster
py
diff --git a/salt/modules/grains.py b/salt/modules/grains.py index <HASH>..<HASH> 100644 --- a/salt/modules/grains.py +++ b/salt/modules/grains.py @@ -416,7 +416,8 @@ def delkey(key): ''' .. versionadded:: nitrogen - Remove a grain complately from the grain system + Remove a grain completely from the ...
clean up grains del val and key docs (#<I>)
py
diff --git a/tests/demoTest.py b/tests/demoTest.py index <HASH>..<HASH> 100644 --- a/tests/demoTest.py +++ b/tests/demoTest.py @@ -39,6 +39,7 @@ class DemoTest(unittest.TestCase): def setUp(self): self.demos = os.listdir(demo_dir) + self.maxDiff = None def testDemos(self): for fil...
set maxDiff to None in demoTest
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ setup( version=about["__version__"], description=about["__summary__"], + long_description=open("README.rst").read(), license=about["__license__"], url=about["__uri__"],
Include the long_description from README.rst
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -64,8 +64,8 @@ setup( # Check that the pandoc-xnos script is on the PATH if not shutil.which('pandoc-xnos'): msg = """ - ERROR: `pandoc-xnos` script not found. You will need to find - the script and e...
Check that pandoc-xnos is on path.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup( name = 'panasonic_viera', packages = ['panasonic_viera'], - version = '0.3.1', + version = '0.3.2', description = 'Library to control Panasonic Viera T...
increase version number to <I>
py
diff --git a/ansigenome/utils.py b/ansigenome/utils.py index <HASH>..<HASH> 100644 --- a/ansigenome/utils.py +++ b/ansigenome/utils.py @@ -246,8 +246,7 @@ def roles_dict(path, repo_prefix=""): for role in roles: if is_role(os.path.join(path, role)): if isinstance(role, basestring): - ...
Do not convert _ to - in repo names
py
diff --git a/gluish/task.py b/gluish/task.py index <HASH>..<HASH> 100644 --- a/gluish/task.py +++ b/gluish/task.py @@ -11,7 +11,7 @@ A default task, that covers file system layout. # pylint: disable=F0401,E1101,E1103 from gluish import GLUISH_DATA from gluish.parameter import ClosestDateParameter -from luigi.task im...
do not use deprecated function, closes #2
py
diff --git a/docs/versionutils.py b/docs/versionutils.py index <HASH>..<HASH> 100644 --- a/docs/versionutils.py +++ b/docs/versionutils.py @@ -34,6 +34,7 @@ translations_list = [ ('ja_JP', 'Japanese'), ('ko_KR', 'Korean'), ('pt_UN', 'Portuguese'), + ('es_UN', 'Spanish'), ('ta_IN', 'Tamil'), ]
Prepare to publish Spanish docs (#<I>)
py
diff --git a/dota2py/data.py b/dota2py/data.py index <HASH>..<HASH> 100644 --- a/dota2py/data.py +++ b/dota2py/data.py @@ -28,6 +28,14 @@ GAME_MODES = { "dota_game_mode_13": "New Player Pool", } +REPLAY_GAME_MODE = { + 1: "All Pick", + 2: "Captains Mode", + 3: "Single Draft", + 4: "Random Draft", + ...
Add game mode identifiers for replays
py
diff --git a/src/python/pants/backend/python/tasks/pytest_run.py b/src/python/pants/backend/python/tasks/pytest_run.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/python/tasks/pytest_run.py +++ b/src/python/pants/backend/python/tasks/pytest_run.py @@ -211,6 +211,9 @@ class PytestRun(TestRunnerTaskMixin, ...
Adding pragma back in the default coverage config (#<I>) The [report] section contains an exclude_lines array. This breaks default pragmas and has to be fixed by excluding the pragma lines again. See doc: <URL>
py
diff --git a/demos/auth/authdemo.py b/demos/auth/authdemo.py index <HASH>..<HASH> 100755 --- a/demos/auth/authdemo.py +++ b/demos/auth/authdemo.py @@ -62,17 +62,24 @@ class AuthHandler(BaseHandler, tornado.auth.GoogleMixin): self.get_authenticated_user(self.async_callback(self._on_auth)) retur...
Make authdemo's logout less confusing. Closes #<I>.
py
diff --git a/src/cloudant/_common_util.py b/src/cloudant/_common_util.py index <HASH>..<HASH> 100644 --- a/src/cloudant/_common_util.py +++ b/src/cloudant/_common_util.py @@ -24,8 +24,7 @@ from collections import Sequence import json from requests import RequestException, Session -from ._2to3 import LONGTYPE, STRTY...
Remove session endpoint checks These checks are redundant. Session endpoint requests are always made using the base request method.
py
diff --git a/pyhunter/pyhunter.py b/pyhunter/pyhunter.py index <HASH>..<HASH> 100644 --- a/pyhunter/pyhunter.py +++ b/pyhunter/pyhunter.py @@ -460,6 +460,8 @@ class PyHunter: """ Update a leads list. + :param leads_list_id: The id of the list to update. + :param name: Name of the lis...
Add docs for missing leads_list_id param
py
diff --git a/pyramid_pages/models.py b/pyramid_pages/models.py index <HASH>..<HASH> 100644 --- a/pyramid_pages/models.py +++ b/pyramid_pages/models.py @@ -115,7 +115,7 @@ class SacrudOptions(object): def sacrud_detail_col(cls): options = [ ('', [cls.name, cls.slug, cls.description, cls.visibl...
fix SacrudOptions for model w/o parent
py
diff --git a/sciunit/__init__.py b/sciunit/__init__.py index <HASH>..<HASH> 100644 --- a/sciunit/__init__.py +++ b/sciunit/__init__.py @@ -172,11 +172,12 @@ class Test(object): score.observation = observation score.related_data = score.related_data.copy() # Don't let scores ...
Put bind inside of _bind
py
diff --git a/dvc/lock.py b/dvc/lock.py index <HASH>..<HASH> 100644 --- a/dvc/lock.py +++ b/dvc/lock.py @@ -87,6 +87,17 @@ if is_py3: self._tmp_dir, filename + ".lock" ) + # Fix for __del__ bug in flufl.lock [1] which is causing errors on + # Python shutdown [2]. + ...
lock: add a workaround for a flufl.lock bug (#<I>) This bug doesn't affect us during regular dvc CLI commands, but is not visualy pleasing during API usage. Fixes #<I>
py
diff --git a/aioxmpp/structs.py b/aioxmpp/structs.py index <HASH>..<HASH> 100644 --- a/aioxmpp/structs.py +++ b/aioxmpp/structs.py @@ -5,10 +5,19 @@ These classes provide a way to hold structured data which is commonly encountered in the XMPP realm. +Jabber IDs +========== + .. autoclass:: JID(localpart, domain, r...
Structure structs docs a bit
py
diff --git a/salt/utils/minions.py b/salt/utils/minions.py index <HASH>..<HASH> 100644 --- a/salt/utils/minions.py +++ b/salt/utils/minions.py @@ -191,6 +191,7 @@ class CkMinions(object): v_expr = comps[1] else: v_matcher = 'glob' + v_expr = valid if v_matcher in i...
Fix case where all minions were matched
py
diff --git a/scripts/illumina_finished_msg.py b/scripts/illumina_finished_msg.py index <HASH>..<HASH> 100644 --- a/scripts/illumina_finished_msg.py +++ b/scripts/illumina_finished_msg.py @@ -181,6 +181,10 @@ def finished_message(tag_name, directory, files_to_copy, config): userid=config['use...
Declare queue and exchange in passing script as well
py
diff --git a/test_spec.py b/test_spec.py index <HASH>..<HASH> 100755 --- a/test_spec.py +++ b/test_spec.py @@ -115,6 +115,20 @@ class ExpandedCoverage(unittest.TestCase): self.assertEqual(result, expected) + def test_recursion(self): + args = { + 'template': '{{# 1.2 }}{{# data }}{{.}}...
Add a unittest for an edge-case recursion error. Currently this makes chevron run in an infinite loop (Until recursion depth limit happens)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,7 +29,7 @@ import shlex # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [] +extensions = ...
Added markdown extension to the documentation project. Refs: #<I>
py
diff --git a/test/drivers/python/table.py b/test/drivers/python/table.py index <HASH>..<HASH> 100644 --- a/test/drivers/python/table.py +++ b/test/drivers/python/table.py @@ -10,7 +10,7 @@ class TestTable(unittest.TestCase): # The AST these tests should generate self.ast = p.TableRef() - self...
Tests typo - this is a bit better
py
diff --git a/sendgrid/message.py b/sendgrid/message.py index <HASH>..<HASH> 100644 --- a/sendgrid/message.py +++ b/sendgrid/message.py @@ -47,13 +47,16 @@ class Mail(SMTPAPIHeader): self.headers = opts.get('headers', '') self.date = opts.get('date', rfc822.formatdate()) + def parse_and_add(sel...
Can pass unicode instead of only strings to add
py
diff --git a/tests/registrar_test.py b/tests/registrar_test.py index <HASH>..<HASH> 100644 --- a/tests/registrar_test.py +++ b/tests/registrar_test.py @@ -28,9 +28,6 @@ class TestRegistrar(unittest.TestCase): cis_search = self.reg.search({'course_id': 'cis'}) cis_dept = self.reg.department('cis') ...
Fix registrar tests by removing broken Kors test "There will always be a Kors class at Penn" - apparently not
py
diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli/test_cli.py +++ b/tests/test_cli/test_cli.py @@ -43,7 +43,7 @@ class TestCliDeployRuns(PatchSSHTestCase): def test_invalid_deploy(self): pass -# TODO +# TODO: need help how to fix these ...
more explicit about these TODOs; need help
py
diff --git a/src/qinfer/distributions.py b/src/qinfer/distributions.py index <HASH>..<HASH> 100644 --- a/src/qinfer/distributions.py +++ b/src/qinfer/distributions.py @@ -50,7 +50,7 @@ import warnings __all__ = [ 'Distribution', 'SingleSampleMixin', - 'SumDistribution', + 'MixtureDistribution', 'P...
Changed name SumDistribution to MixtureDistribution
py
diff --git a/phono3py/cui/create_force_constants.py b/phono3py/cui/create_force_constants.py index <HASH>..<HASH> 100644 --- a/phono3py/cui/create_force_constants.py +++ b/phono3py/cui/create_force_constants.py @@ -435,7 +435,7 @@ def _create_phono3py_phonon_fc2(phono3py, alm_options, ...
Fixed dim-fc2 user interface
py
diff --git a/rest_api/sawtooth_rest_api/routes.py b/rest_api/sawtooth_rest_api/routes.py index <HASH>..<HASH> 100644 --- a/rest_api/sawtooth_rest_api/routes.py +++ b/rest_api/sawtooth_rest_api/routes.py @@ -23,6 +23,7 @@ from aiohttp.helpers import parse_mimetype from google.protobuf.json_format import MessageToJson, ...
Update rest api for Future resolving FutureError When the Stream class detects a validator disconnect, and Futures are unresolved, it resolves them as FutureError instead of FutureResult. The rest_api now handles the error and returns an HTTPServiceUnavailable, <I> error.
py
diff --git a/tests/etl/test_classification_mirroring.py b/tests/etl/test_classification_mirroring.py index <HASH>..<HASH> 100644 --- a/tests/etl/test_classification_mirroring.py +++ b/tests/etl/test_classification_mirroring.py @@ -10,7 +10,7 @@ from django.conf import settings from treeherder.etl.classification_mirror...
Bug <I> - Remove tbpl from test names
py
diff --git a/ginga/rv/plugins/Mosaic.py b/ginga/rv/plugins/Mosaic.py index <HASH>..<HASH> 100644 --- a/ginga/rv/plugins/Mosaic.py +++ b/ginga/rv/plugins/Mosaic.py @@ -331,7 +331,7 @@ class Mosaic(GingaPlugin.LocalPlugin): merge=merge, ...
Fix for non-gui thread executing GUI code in Mosaic - Fix for Mosaic code having a non-gui thread executing a GUI callback. This resulted in QTimer errors.
py
diff --git a/mongoctl/mongoctl_logging.py b/mongoctl/mongoctl_logging.py index <HASH>..<HASH> 100644 --- a/mongoctl/mongoctl_logging.py +++ b/mongoctl/mongoctl_logging.py @@ -20,7 +20,7 @@ logger = None _log_to_stdout = True _logging_level = logging.INFO -VERBOSE = 5 +VERBOSE = 15 logging.addLevelName(VERBOSE, "VE...
Making verbose higher than debug
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,13 @@ from setuptools import setup, find_packages import airflow -# To generate install_requires from requirements.txt -# from pip.req import parse_requirements -# reqs = (str(ir.req) for ir in parse_requirements(...
Importing airflow in setup.py wan't a good idea, rolling back
py
diff --git a/indra/tools/reading/util/__init__.py b/indra/tools/reading/util/__init__.py index <HASH>..<HASH> 100644 --- a/indra/tools/reading/util/__init__.py +++ b/indra/tools/reading/util/__init__.py @@ -0,0 +1,17 @@ +def get_s3_root(s3_base, job_queue="run_db_reading_queue"): + return s3_base + 'logs/%s/' % job_...
Move functions that regularize s3 naming into indra. These functions used to live in indra_db.
py
diff --git a/htmresearch/algorithms/temporal_memory_factory.py b/htmresearch/algorithms/temporal_memory_factory.py index <HASH>..<HASH> 100644 --- a/htmresearch/algorithms/temporal_memory_factory.py +++ b/htmresearch/algorithms/temporal_memory_factory.py @@ -74,11 +74,8 @@ class ReversedExtendedTemporalMemory(FastETM):...
Call activateDendrites, not activateBasalDendrites. activateBasalDendrites and activateApicalDendrites are being removed.
py
diff --git a/sos/utilities.py b/sos/utilities.py index <HASH>..<HASH> 100644 --- a/sos/utilities.py +++ b/sos/utilities.py @@ -209,7 +209,7 @@ class AsyncReader(threading.Thread): slots = None if sizelimit: sizelimit = sizelimit * 1048576 # convert to bytes - slots = sizelimit...
[utilities] Ensure slots in deque is always integer With python3, the 'slots' calculation returns a decimal number which deque() will not accept, thus throwing an exception. Always make sure slots is an integer value.
py
diff --git a/revolver/project.py b/revolver/project.py index <HASH>..<HASH> 100644 --- a/revolver/project.py +++ b/revolver/project.py @@ -85,7 +85,10 @@ class Deployinator(object): core.run("tar -xzf deploy.tar.gz") file.remove("deploy.tar.gz") - file.write("VERSION",...
Buggy file.write() disabled and a new TODO added
py
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py index <HASH>..<HASH> 100644 --- a/setuptools/command/install_lib.py +++ b/setuptools/command/install_lib.py @@ -79,6 +79,8 @@ class install_lib(orig.install_lib): base = os.path.join('__pycache__', '__init__.' + imp.get_tag()) ...
Fix package list inconsistency caused by namespace package on Python <I> namespace package will be skipped during installation. Since Python <I>, .pyo files are removed and new .opt-1.pyc (and .opt-2.pyc) files are introduced [1]. However setuptools does not understand that new naming therefore the corresponding foo.o...
py
diff --git a/nats/js/client.py b/nats/js/client.py index <HASH>..<HASH> 100644 --- a/nats/js/client.py +++ b/nats/js/client.py @@ -922,7 +922,7 @@ class JetStreamContext(JetStreamManager): req_subject = f"{self._prefix}.STREAM.MSG.GET.{stream_name}" req = {'last_by_subj': subject} data = json...
Fix incorrect timeout propagation This commit adds timeout propagation on key value get operation.
py
diff --git a/tests/grid/test_network.py b/tests/grid/test_network.py index <HASH>..<HASH> 100644 --- a/tests/grid/test_network.py +++ b/tests/grid/test_network.py @@ -143,7 +143,7 @@ class TestTimeSeriesControl: # check shape number_of_timesteps = len(self.timeseries.timeindex) - number_of_co...
temporary fix test_worst_case (might change back once slack handeling is implemented)
py
diff --git a/tests/clitests/runtests.py b/tests/clitests/runtests.py index <HASH>..<HASH> 100644 --- a/tests/clitests/runtests.py +++ b/tests/clitests/runtests.py @@ -64,8 +64,9 @@ class CasperExecTestBase(unittest.TestCase): if not what: raise AssertionError('Empty lookup') if isinstance...
Dont run tests multiple times per string contains test
py
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -193,12 +193,6 @@ class BaseCoordinator(object): """ while self.coordinator_unknown(): - # Dont look for a new coordinator node...
Can no longer have coordinator_id if coordinator_unknown()
py
diff --git a/phydmslib/simulate.py b/phydmslib/simulate.py index <HASH>..<HASH> 100644 --- a/phydmslib/simulate.py +++ b/phydmslib/simulate.py @@ -11,6 +11,7 @@ import phydmslib.models from phydmslib.constants import * import pyvolve from tempfile import mkstemp +import random def pyvolvePartitions(model, divse...
Add set random seed switch to simulate.py
py
diff --git a/salt/output/highstate.py b/salt/output/highstate.py index <HASH>..<HASH> 100644 --- a/salt/output/highstate.py +++ b/salt/output/highstate.py @@ -1,5 +1,22 @@ ''' -Print out highstate data +The return data from the Highstate command is a standard data structure +which is parsed by the highstate outputter ...
Add docs to the highstate outputter
py
diff --git a/qutepart/completer.py b/qutepart/completer.py index <HASH>..<HASH> 100644 --- a/qutepart/completer.py +++ b/qutepart/completer.py @@ -212,6 +212,7 @@ class _CompletionList(QListView): if event.type() == QEvent.KeyPress and event.modifiers() == Qt.NoModifier: if event.key() == Qt.Key_E...
Stop Esc event processing, if closed autocompletion
py
diff --git a/salt/cli/caller.py b/salt/cli/caller.py index <HASH>..<HASH> 100644 --- a/salt/cli/caller.py +++ b/salt/cli/caller.py @@ -122,8 +122,15 @@ class Caller(object): ''' Execute the salt call logic ''' + ret = self.call() + out = ret['return'] + # If the type of...
Fix output from salt-call to look like normal salt output
py
diff --git a/mutant/hacks.py b/mutant/hacks.py index <HASH>..<HASH> 100644 --- a/mutant/hacks.py +++ b/mutant/hacks.py @@ -4,13 +4,14 @@ # override the item_field __cmp__ method to return NotImplemented if the # object it's compared to isn't a Field instance. Let's monkey patch it! # see https://code.djangoproject.c...
Make sure hacks are only loaded when required
py
diff --git a/python/lookout/sdk/service_data.py b/python/lookout/sdk/service_data.py index <HASH>..<HASH> 100644 --- a/python/lookout/sdk/service_data.py +++ b/python/lookout/sdk/service_data.py @@ -37,6 +37,9 @@ class DataStub: ) def _build_metadata(self, context, metadata): + if context is None...
Permit to call get_changes with None context
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -151,8 +151,8 @@ if on_rtd: proc = subprocess.Popen("ls ../", stdout=subprocess.PIPE, shell=True) (out, err) = proc.communicate() print "program output:", out - #proc = subprocess.Popen("sphinx-ap...
Updated conf.py to work again rather than cause an infinite loop
py
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_server.py +++ b/cheroot/test/test_server.py @@ -214,7 +214,7 @@ def test_peercreds_unix_sock(peercreds_enabled_server_and_client): bind_addr = bind_addr.decode() unix_base_uri = 'ht...
Use canonical form of null character.
py
diff --git a/pyinstrument/renderers/speedscope.py b/pyinstrument/renderers/speedscope.py index <HASH>..<HASH> 100644 --- a/pyinstrument/renderers/speedscope.py +++ b/pyinstrument/renderers/speedscope.py @@ -204,7 +204,7 @@ class SpeedscopeRenderer(Renderer): profile_decls.append('"type": %s' % encode_str(profi...
SpeedscopeRenderer.render: use profile_name object This commit uses the previously-unused profile_name object within SpeedscopeRenderer.render.
py
diff --git a/src/codemod.py b/src/codemod.py index <HASH>..<HASH> 100755 --- a/src/codemod.py +++ b/src/codemod.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2007-2008 Facebook #
implement pep-<I> make it explicit that codemod needs python2, as it does not run with python3. according to pep-<I>, python distributors are allowed to provide either python 2 or 3 as `python` command, and should provide `python2` and `python3` commands to refer to python v2 or 3 respectively. see <URL>
py