diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/Python/doc/source/conf.py b/src/Python/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/src/Python/doc/source/conf.py +++ b/src/Python/doc/source/conf.py @@ -14,6 +14,18 @@ import sys import os +import mock + +import numpy as np +import matplotlib.cm as cm +import matplotlib.pyplot as plt +impo...
Working towards generating autoapi with Read the Docs
py
diff --git a/helpers/call_and_write_log.py b/helpers/call_and_write_log.py index <HASH>..<HASH> 100755 --- a/helpers/call_and_write_log.py +++ b/helpers/call_and_write_log.py @@ -43,14 +43,13 @@ from subprocess import call # noqa: S404 def _run_script(): - const_ret = None + const_ret = False if len(sy...
made tox fail if flake8, doc8, or pydocstyle flag any errors
py
diff --git a/tests/test_parser.py b/tests/test_parser.py index <HASH>..<HASH> 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1977,7 +1977,7 @@ def _make_parser_test(LEXER, PARSER): %import .test_relative_import (start, WS) %ignore WS """ - p = _Lark(gr...
Fix tests failing when used with `python -m unittest discover`
py
diff --git a/grr/server/data_server/store.py b/grr/server/data_server/store.py index <HASH>..<HASH> 100644 --- a/grr/server/data_server/store.py +++ b/grr/server/data_server/store.py @@ -319,7 +319,8 @@ class DataStoreService(object): MAP_SUBJECT, MAP_VALUE_PREDICATE, token=token) if not mapping_str: ...
Fixing a deserialization bug in the data server.
py
diff --git a/tenant_schemas/management/commands/__init__.py b/tenant_schemas/management/commands/__init__.py index <HASH>..<HASH> 100644 --- a/tenant_schemas/management/commands/__init__.py +++ b/tenant_schemas/management/commands/__init__.py @@ -1,3 +1,4 @@ +import django from django.conf import settings from django...
fixed error that was causing createsuperuser to fail for later versions of django
py
diff --git a/python_modules/dagster/dagster/core/storage/output_manager.py b/python_modules/dagster/dagster/core/storage/output_manager.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/storage/output_manager.py +++ b/python_modules/dagster/dagster/core/storage/output_manager.py @@ -57,8 +57,6 @@...
Remove reference to output_manager decorator Summary: This decorator was removed with the <I> release when we transitioned from using OutputManagers directly to using IOManagers: <URL>
py
diff --git a/twarc/command2.py b/twarc/command2.py index <HASH>..<HASH> 100644 --- a/twarc/command2.py +++ b/twarc/command2.py @@ -359,8 +359,8 @@ def flatten(infile, outfile): "Flatten" tweets, or move expansions inline with tweet objects. """ if (infile.name == outfile.name): - outfile.name = ou...
fail the call instead of renaming
py
diff --git a/aiosqlite/core.py b/aiosqlite/core.py index <HASH>..<HASH> 100644 --- a/aiosqlite/core.py +++ b/aiosqlite/core.py @@ -258,11 +258,11 @@ class Connection(Thread): return self._conn.in_transaction @property - def isolation_level(self) -> str: + def isolation_level(self) -> Optional[Lite...
Update type hint for `isolation_level` property. Hi! I was developing an app using `aiosqlite` and `mypy <I>` reported that I could't set `isolation_level` to None. I updated the type hint based on the documentation for the standard sqlite3 python module. <URL>
py
diff --git a/spyder/widgets/variableexplorer/arrayeditor.py b/spyder/widgets/variableexplorer/arrayeditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/variableexplorer/arrayeditor.py +++ b/spyder/widgets/variableexplorer/arrayeditor.py @@ -602,6 +602,7 @@ class ArrayEditor(QDialog): return False if data...
Variable Explorer: Fix error when setting values for numpy arrays in its editor
py
diff --git a/psamm/commands/masscheck.py b/psamm/commands/masscheck.py index <HASH>..<HASH> 100644 --- a/psamm/commands/masscheck.py +++ b/psamm/commands/masscheck.py @@ -89,10 +89,6 @@ class MassConsistencyCommand(SolverCommandMixin, Command): lambda x: compound_name.get(x, x)), mass)) logger...
masscheck: Remove redundant consistency check The call to is_consistent() is redundant as the consistency is already tested with the two other methods.
py
diff --git a/pydoop/mapreduce/binary_streams.py b/pydoop/mapreduce/binary_streams.py index <HASH>..<HASH> 100644 --- a/pydoop/mapreduce/binary_streams.py +++ b/pydoop/mapreduce/binary_streams.py @@ -85,6 +85,7 @@ class BinaryWriter(object): class BinaryDownStreamFilter(DownStreamFilter): + @staticmethod de...
mark binary_streams.get_list as @staticmethod
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -239,7 +239,7 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ project = 'Salt' version = salt.version.__version__ -latest_release = '2016.11.3' # latest release +latest_release = '2016.11.4' # latest rele...
[<I>] Bump latest release version to <I>
py
diff --git a/spyder/__init__.py b/spyder/__init__.py index <HASH>..<HASH> 100644 --- a/spyder/__init__.py +++ b/spyder/__init__.py @@ -29,7 +29,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -version_info = (3, 3, 4) +version_info = (3, 3, 5, "dev0") __vers...
Back to work [ci skip]
py
diff --git a/mpop/scene.py b/mpop/scene.py index <HASH>..<HASH> 100644 --- a/mpop/scene.py +++ b/mpop/scene.py @@ -549,8 +549,11 @@ class SatelliteInstrumentScene(SatelliteScene): "thus not projected.") # Compose with image object - if res._CompositerClass is n...
Bugfix: access to CompositerClass would fail if using the old interface.
py
diff --git a/python/src/nnabla/utils/data_iterator.py b/python/src/nnabla/utils/data_iterator.py index <HASH>..<HASH> 100644 --- a/python/src/nnabla/utils/data_iterator.py +++ b/python/src/nnabla/utils/data_iterator.py @@ -119,7 +119,7 @@ class DataIterator(object): Returns: int: epoch ''...
Update getting epoch number.
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -368,7 +368,7 @@ def _is_valid_relpath( # Check relpath surrounded by slashes, so that `..` can be caught as # a path component at the start, end, and in the middle of the ...
Remove extra parens Pylint doesn't like them.
py
diff --git a/spam_lists/exceptions.py b/spam_lists/exceptions.py index <HASH>..<HASH> 100644 --- a/spam_lists/exceptions.py +++ b/spam_lists/exceptions.py @@ -3,7 +3,7 @@ class SpamListsError(Exception): '''There was an error during testing a url or host''' -class UnknownCodeError(SpamListsError): +class Un...
Make UnknownCodeError additionally extend KeyError
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,10 +35,10 @@ if sys.version_info < (3, 0): entry_points['console_scripts'] = ['pynvim=neovim.ui.cli:main [GUI]'] setup(name='neovim', - version='0.0.38', + version='0.1.0', description='Python clie...
Bump Bump to <I>.x to follow minor version of nvim
py
diff --git a/tests/test_service.py b/tests/test_service.py index <HASH>..<HASH> 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -175,6 +175,14 @@ class OAuth2ServiceTestCase(RauthTestCase): self.assertEqual(response['access_token'], '321') @patch.object(requests.Session, 'request') + ...
Add unit test for client_credentials flow.
py
diff --git a/influxdb_metrics/tasks.py b/influxdb_metrics/tasks.py index <HASH>..<HASH> 100644 --- a/influxdb_metrics/tasks.py +++ b/influxdb_metrics/tasks.py @@ -12,7 +12,7 @@ except ImportError: from .utils import write_points as write_points_normal -@shared_task +@shared_task(ignore_result=True) def write_poin...
Add ignore_result=True There is a long standing issue with Celery and the redis result backend where results stored *must* be read to clear redis. Moreover, this task returns nothing, so we can safely mark the result to be ignored.
py
diff --git a/src/openaccess_epub/opf/opf.py b/src/openaccess_epub/opf/opf.py index <HASH>..<HASH> 100644 --- a/src/openaccess_epub/opf/opf.py +++ b/src/openaccess_epub/opf/opf.py @@ -80,10 +80,10 @@ class OPF(object): instance with the title argument, or calling set_title() at any time before writing ...
fixing error caused by reordering of resets
py
diff --git a/minio/policy.py b/minio/policy.py index <HASH>..<HASH> 100644 --- a/minio/policy.py +++ b/minio/policy.py @@ -378,7 +378,7 @@ def _remove_statements(statements, policy, bucket_name, prefix=''): # def _merge_dict(d1, d2): out = collections.defaultdict(list) - for k, v in itertools.chain(d1.iterite...
Fix: Use dict.items() instead of dict.iteritems() (#<I>) dict.iteritems() is not supported in python 3 but we can safely use dict.items() which provides a _view_ of dict elements.
py
diff --git a/chess/pgn.py b/chess/pgn.py index <HASH>..<HASH> 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -1311,7 +1311,3 @@ def skip_game(handle): Skip a game. Returns ``True`` if a game was found and skipped. """ return read_game(handle, Visitor=SkipVisitor) - - -# TODO: Deprecated -GameModelCreato...
Remove deprecated GameModelCreator
py
diff --git a/daemonocle/daemon.py b/daemonocle/daemon.py index <HASH>..<HASH> 100644 --- a/daemonocle/daemon.py +++ b/daemonocle/daemon.py @@ -519,10 +519,10 @@ class Daemon(object): uptime_hours, uptime_minutes = divmod(uptime_minutes, 60) data['uptime'] = str(uptime_minutes) + 'm' ...
Fixed bug with uptime calculation in status.
py
diff --git a/pubsub/tests/system.py b/pubsub/tests/system.py index <HASH>..<HASH> 100644 --- a/pubsub/tests/system.py +++ b/pubsub/tests/system.py @@ -360,7 +360,8 @@ class TestPubsub(unittest.TestCase): self.to_delete.append(topic) SUBSCRIPTION_NAME = 'subscribing-to-seek' + unique_resource_id('-')...
Fix a system test TODO (#<I>) This should prevent the (as of yet, unexperienced) error case where the API deletes the acked messages before we have a chance to seek to them.
py
diff --git a/filer/fields/file.py b/filer/fields/file.py index <HASH>..<HASH> 100644 --- a/filer/fields/file.py +++ b/filer/fields/file.py @@ -24,7 +24,7 @@ logger = logging.getLogger(__name__) class AdminFileWidget(ForeignKeyRawIdWidget): choices = None - def render(self, name, value, attrs=None, render=Non...
Fixed wrong argument for AdminFileWidget render method (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( author_email='f5_common_python@f5.com', url='https://github.com/F5Networks/f5-common-python', keywords=['F5', 'sdk', 'api', 'icontrol', 'bigip', 'api', 'ltm'], - install_requires=['f5-ic...
Python six module required in setup.py Issues: Fixes #<I> Problem: Recently, we began using the 'six' module in the sdk, but we did not update setup.py with six as a required module. This is a critical install failure. Analysis: Added six in setup.py Tests: Pip installed and ensured latest six version was installed
py
diff --git a/examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/test_type_guide.py b/examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/test_type_guide.py index <HASH>..<HASH> 100644 --- a/examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/test_type_guide.py +++ b/examples/docs_sn...
fix typo in code example that appears in the docs (#<I>)
py
diff --git a/indra/assemblers/indranet/net.py b/indra/assemblers/indranet/net.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/indranet/net.py +++ b/indra/assemblers/indranet/net.py @@ -205,9 +205,12 @@ class IndraNet(nx.MultiDiGraph): SG = nx.MultiDiGraph() for u, v, data in self.edges(data=Tr...
Use signs from df and sign_dict when flattening
py
diff --git a/tests/testing/vcr/integration/test_sync_client.py b/tests/testing/vcr/integration/test_sync_client.py index <HASH>..<HASH> 100644 --- a/tests/testing/vcr/integration/test_sync_client.py +++ b/tests/testing/vcr/integration/test_sync_client.py @@ -135,7 +135,7 @@ def test_record_success_new_channels(tmpdir, ...
Plugging a few more json tests
py
diff --git a/openquake/commands/engine.py b/openquake/commands/engine.py index <HASH>..<HASH> 100644 --- a/openquake/commands/engine.py +++ b/openquake/commands/engine.py @@ -158,7 +158,7 @@ def engine(log_file, no_distribute, yes, config_file, make_html_report, sys.exit('%s should be a .ini filename or a ...
Fixed an error opening a zip archive [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -71,10 +71,29 @@ is_threaded = True synth_base = join('ajg', 'synth') is_windows = sys.platform == 'win32' +def get_and_set_windows_msvc_version(): + latest, path = None, None + + for name, value in os.environ.item...
Attempt to detect MSVC's version from env vars
py
diff --git a/superset/viz.py b/superset/viz.py index <HASH>..<HASH> 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -145,6 +145,10 @@ class BaseViz(object): """ pass + def handle_nulls(self, df): + fillna = self.get_fillna_for_columns(df.columns) + df = df.fillna(fillna) + ...
Refactor NULL handling into method, disable for DECK.gl vizes (#<I>)
py
diff --git a/hex16/convert.py b/hex16/convert.py index <HASH>..<HASH> 100644 --- a/hex16/convert.py +++ b/hex16/convert.py @@ -22,4 +22,20 @@ def unpad_pic24_hex(hexfile): out[j+2] = f[i+2] j += 3 + return out + +def pad_pic24_hex(f): + out = ih.IntelHex() + + i = 0 + j = 0 + + for i in xrange(0, len(f), 3): +...
Add ability to pad pic<I> hex files
py
diff --git a/conference_scheduler/resources.py b/conference_scheduler/resources.py index <HASH>..<HASH> 100644 --- a/conference_scheduler/resources.py +++ b/conference_scheduler/resources.py @@ -23,6 +23,18 @@ class ScheduledItem(NamedTuple): slot: Slot +class ChangedEventSchedule(NamedTuple): + event: Even...
[#<I>] Add resource classes for changed schedule
py
diff --git a/src/satosa/frontends/saml2.py b/src/satosa/frontends/saml2.py index <HASH>..<HASH> 100644 --- a/src/satosa/frontends/saml2.py +++ b/src/satosa/frontends/saml2.py @@ -12,6 +12,7 @@ from saml2.httputil import Response from saml2.httputil import Redirect from saml2.httputil import Unauthorized from saml2.s...
Handle UnknownSystemEntity, closes #7. Any request containing an unknown entityID will result in UnknownSystemEntity, so it should be handled more gracefully.
py
diff --git a/Lib/glyphs2ufo/torf.py b/Lib/glyphs2ufo/torf.py index <HASH>..<HASH> 100644 --- a/Lib/glyphs2ufo/torf.py +++ b/Lib/glyphs2ufo/torf.py @@ -461,12 +461,13 @@ def load_glyph(rglyph, layer, glyph_data): glyph_data['lastChange']) for key in ['leftMetricsKey', 'rightMetricsKey', 'widthMetricsKey'...
Use same lib prefix as Glyphs for metrics keys
py
diff --git a/tacl/constants.py b/tacl/constants.py index <HASH>..<HASH> 100644 --- a/tacl/constants.py +++ b/tacl/constants.py @@ -389,9 +389,13 @@ SUPPLIED_EPILOG = '''\ files. The first label is assigned to all results in the first results file, the second label to all results in the second results fil...
Added example invocations for sdiff and sintersect.
py
diff --git a/pydevd.py b/pydevd.py index <HASH>..<HASH> 100644 --- a/pydevd.py +++ b/pydevd.py @@ -423,7 +423,7 @@ class PyDB: pydev_log.error_once( 'Error in debugger: Found PyDBDaemonThread not marked with is_pydev_daemon_thread=True.\n') - if isThreadAlive(t): + ...
Revert changes again (PY-<I>) (cherry picked from commit <I>a1f2bb7a6c<I>a0af<I>cc<I>f<I>)
py
diff --git a/src/masonite/providers/ExceptionProvider.py b/src/masonite/providers/ExceptionProvider.py index <HASH>..<HASH> 100644 --- a/src/masonite/providers/ExceptionProvider.py +++ b/src/masonite/providers/ExceptionProvider.py @@ -3,6 +3,7 @@ import builtins from exceptionite import Handler from exceptionite.opti...
added Masonite exceptions from exceptionite
py
diff --git a/argos/inspector/pgplugins/colorbar.py b/argos/inspector/pgplugins/colorbar.py index <HASH>..<HASH> 100644 --- a/argos/inspector/pgplugins/colorbar.py +++ b/argos/inspector/pgplugins/colorbar.py @@ -53,10 +53,11 @@ class ArgosColorLegendItem(ColorLegendItem): sigResetColorScale = QtSignal() # Signal t...
Color bar discards 1% of the pixels when determining the histogram hight. That is, the histHeightPercentile is set to <I>. In commit 4e6bbb3 of PgColor bar the default value for that parameter was changed from <I> to <I>, so we set it explicitely to <I> in Argos.
py
diff --git a/astroid/bases.py b/astroid/bases.py index <HASH>..<HASH> 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -544,8 +544,8 @@ class Generator(BaseInstance): # pylint: disable=unnecessary-lambda special_attributes = util.lazy_descriptor(lambda: objectmodel.GeneratorModel()) - # pylint: di...
Fix 'Super of base class not called in __init__'
py
diff --git a/organizations/utils.py b/organizations/utils.py index <HASH>..<HASH> 100644 --- a/organizations/utils.py +++ b/organizations/utils.py @@ -44,17 +44,13 @@ def create_organization(user, name, slug=None, is_active=None, org_model = kwargs.pop('model', None) or kwargs.pop('org_model', None) or Organizatio...
Updates relationship attribute names The one-to-many relationship now uses a `ForeignRelatedObjectsDescriptor` instance (<URL>) which uses the attribute name `rel` rather than `related`.
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -533,7 +533,7 @@ class Starmap(object): calc_id = None hdf5 = None pids = () - task_ids = () + task_ids = [] @clas...
Merged from master [skip CI]
py
diff --git a/src/aiofiles/tempfile/temptypes.py b/src/aiofiles/tempfile/temptypes.py index <HASH>..<HASH> 100644 --- a/src/aiofiles/tempfile/temptypes.py +++ b/src/aiofiles/tempfile/temptypes.py @@ -18,7 +18,6 @@ from functools import partial "close", "flush", "isatty", - "newlines", "read", ...
move SpooledTempFile.newlines from delegation to property
py
diff --git a/gnsq/reader.py b/gnsq/reader.py index <HASH>..<HASH> 100644 --- a/gnsq/reader.py +++ b/gnsq/reader.py @@ -354,13 +354,21 @@ class Reader(object): return self.total_in_flight + self.total_ready_count def send_ready(self, conn, count): - if self.state in (BACKOFF, CLOSED): + if ...
Add send_ready debugging messages.
py
diff --git a/phy/cluster/manual/session.py b/phy/cluster/manual/session.py index <HASH>..<HASH> 100644 --- a/phy/cluster/manual/session.py +++ b/phy/cluster/manual/session.py @@ -332,6 +332,8 @@ class Session(EventEmitter): def _to_wizard_group(self, group_id): """Return the group name required by the wiz...
Fixed bug when a cluster group is an array in the HDF5 file.
py
diff --git a/test_schedule.py b/test_schedule.py index <HASH>..<HASH> 100644 --- a/test_schedule.py +++ b/test_schedule.py @@ -17,6 +17,39 @@ def make_mock_job(name=None): return job +class mock_time(object): + """ + decorator to monkey-patch datetime for predicable results + """ + + def __init__(s...
Add a decorator to support patching the datetime
py
diff --git a/omego/upgrade.py b/omego/upgrade.py index <HASH>..<HASH> 100644 --- a/omego/upgrade.py +++ b/omego/upgrade.py @@ -184,7 +184,12 @@ class Upgrade(object): from path import path old_grid = path(self.args.sym) / "etc" / "grid" old_cfg = old_grid / "config.xml" - ...
Re-handle initial install without symlink
py
diff --git a/lavalink/PlayerManager.py b/lavalink/PlayerManager.py index <HASH>..<HASH> 100644 --- a/lavalink/PlayerManager.py +++ b/lavalink/PlayerManager.py @@ -14,7 +14,7 @@ class BasePlayer(ABC): async def handle_event(self, event): raise NotImplementedError - async def cleanup(self): + de...
shouldn't be async
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -20,6 +20,17 @@ # ######################################################################## from aioxmpp.e2etest import ( # NOQA - setup_package, + setup_package as e2etest_setup_pa...
[temporary] tests: make deprecation warnings fatal in tests
py
diff --git a/addok/core.py b/addok/core.py index <HASH>..<HASH> 100644 --- a/addok/core.py +++ b/addok/core.py @@ -620,7 +620,7 @@ class Search(BaseHelper): @property def pass_should_match_threshold(self): - len(self.matched_keys) >= self.should_match_threshold + return len(self.matched_keys) ...
Missing return in pass threshold check :/
py
diff --git a/pybromo/diffusion.py b/pybromo/diffusion.py index <HASH>..<HASH> 100644 --- a/pybromo/diffusion.py +++ b/pybromo/diffusion.py @@ -658,7 +658,7 @@ class ParticlesSimulation(object): return timestamps, particles def _sim_timestamps(self, max_rate, bg_rate, emission, i_start, rs, - ...
Compute max_counts from current counts when generating timestamps. Remove the argument max_counts. The value is computed from the current array of counts instead. This may remove some minor saturation issues at very high count rates where we have more than 4 counts. Also, since the max_count is computed on each chunk ...
py
diff --git a/xmantissa/websession.py b/xmantissa/websession.py index <HASH>..<HASH> 100644 --- a/xmantissa/websession.py +++ b/xmantissa/websession.py @@ -68,10 +68,6 @@ class PersistentSession(item.Item): """) - def __repr__(self): - return "PersistentSession(%r)" % (self.sessionKey,) - - def r...
Delete this __repr__. The default `Item` repr is *far* more useful.
py
diff --git a/edeposit/amqp/settings.py b/edeposit/amqp/settings.py index <HASH>..<HASH> 100644 --- a/edeposit/amqp/settings.py +++ b/edeposit/amqp/settings.py @@ -10,3 +10,4 @@ RABBITMQ_ALEPH_PLONE_QUEUE = "plone" RABBITMQ_ALEPH_EXCHANGE = "search" RABBITMQ_ALEPH_DAEMON_KEY = "request" RABBITMQ_ALEPH_PLONE_KEY = "re...
Added new key for exceptions.
py
diff --git a/foundation/__init__.py b/foundation/__init__.py index <HASH>..<HASH> 100644 --- a/foundation/__init__.py +++ b/foundation/__init__.py @@ -16,7 +16,7 @@ class SeoDescription(Directive): def run(self): # Save the last SEO description for a page. - seo_descriptions[self.state.document.s...
Fixed a bug when only first line was extracted from the seo-description directive.
py
diff --git a/dataviews/views.py b/dataviews/views.py index <HASH>..<HASH> 100644 --- a/dataviews/views.py +++ b/dataviews/views.py @@ -417,11 +417,11 @@ class GridLayout(NdMapping): @max_cols.setter def max_cols(self, n): self._max_cols = n - self.update({}, n) + self.reorder({}, n) ...
Renamed update in GridLayout to avoid overriding NdMapping.update
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.rst') as file: setup( name='mir_eval', - version='0.0.0', + version='0.1', description='Common metrics for common audio/music processing tasks.', author='Colin Raffel', ...
Setting version number to <I>
py
diff --git a/nidmresults/objects/inference.py b/nidmresults/objects/inference.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/inference.py +++ b/nidmresults/objects/inference.py @@ -433,12 +433,20 @@ class ClusterCriteria(NIDMObject): label = "Cluster Connectivity Criterion: " + str(self.connectivit...
Missing voxel connectivity
py
diff --git a/holoviews/core/options.py b/holoviews/core/options.py index <HASH>..<HASH> 100644 --- a/holoviews/core/options.py +++ b/holoviews/core/options.py @@ -35,8 +35,6 @@ Store: import param from .tree import AttrTree -from .operation import ElementOperation -from .overlay import CompositeOverlay, Overlay ...
Fixed imports in options so that Store may be imported into dimension.py
py
diff --git a/djangodblog/manager.py b/djangodblog/manager.py index <HASH>..<HASH> 100644 --- a/djangodblog/manager.py +++ b/djangodblog/manager.py @@ -55,10 +55,19 @@ class DBLogManager(models.Manager): defaults = defaults ) if not created: - batch.times_seen +=...
Fix for a race condition with times_seen (non-critical)
py
diff --git a/gns3server/controller/gns3vm/hyperv_gns3_vm.py b/gns3server/controller/gns3vm/hyperv_gns3_vm.py index <HASH>..<HASH> 100644 --- a/gns3server/controller/gns3vm/hyperv_gns3_vm.py +++ b/gns3server/controller/gns3vm/hyperv_gns3_vm.py @@ -182,8 +182,8 @@ class HyperVGNS3VM(BaseGNS3VM): vms = [] ...
Change how Hyper-V VMs are found. Ref #<I>
py
diff --git a/cheroot/workers/threadpool.py b/cheroot/workers/threadpool.py index <HASH>..<HASH> 100644 --- a/cheroot/workers/threadpool.py +++ b/cheroot/workers/threadpool.py @@ -271,6 +271,13 @@ class ThreadPool: for worker in self._threads: self._queue.put(_SHUTDOWNREQUEST) + ignored_er...
Extract ignored_errors, simplify comments
py
diff --git a/can/io/asc.py b/can/io/asc.py index <HASH>..<HASH> 100644 --- a/can/io/asc.py +++ b/can/io/asc.py @@ -246,6 +246,7 @@ class ASCWriter(BaseIOHandler, Listener): "{bit_timing_conf_ext_data:>8}", ] ) + FORMAT_START_OF_FILE_DATE = "%a %b %d %I:%M:%S.%f %p %Y" FORMAT_DATE = "%...
Extract constant for start of file date format in ASCWriter (#<I>)
py
diff --git a/asyncio_xmpp/stream_worker.py b/asyncio_xmpp/stream_worker.py index <HASH>..<HASH> 100644 --- a/asyncio_xmpp/stream_worker.py +++ b/asyncio_xmpp/stream_worker.py @@ -170,7 +170,7 @@ class StanzaBroker(StreamWorker): del self.unacked_queue[:upto_index] for token in to_flush: - ...
Fix NameError in stanza broker That name error broke stream management. Kill it with fire.
py
diff --git a/django_logtail/admin.py b/django_logtail/admin.py index <HASH>..<HASH> 100644 --- a/django_logtail/admin.py +++ b/django_logtail/admin.py @@ -49,6 +49,9 @@ class LogAdmin(admin.ModelAdmin): if seek_to > file_length: seek_to = file_length + + if file_length >= 5120...
don't send the whole logfile
py
diff --git a/tests/core/contracts/test_contract_buildTransaction.py b/tests/core/contracts/test_contract_buildTransaction.py index <HASH>..<HASH> 100644 --- a/tests/core/contracts/test_contract_buildTransaction.py +++ b/tests/core/contracts/test_contract_buildTransaction.py @@ -55,14 +55,14 @@ def test_build_transactio...
contract buildTransaction test: remove unnecessary call
py
diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py index <HASH>..<HASH> 100644 --- a/pandas/tests/reshape/concat/test_concat.py +++ b/pandas/tests/reshape/concat/test_concat.py @@ -554,3 +554,21 @@ def test_concat_preserves_extension_int64_dtype(): result = pd.conc...
[TST]: Add test for duplicate keys in concat (#<I>) * Add test for <I> * Modify test * Move test
py
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_table.py +++ b/gwpy/tests/test_table.py @@ -120,7 +120,8 @@ class TestTable(object): table = self.create( 100, ['peak_time', 'peak_time_ns', 'snr', 'central_freq'], ['i4'...
tests: fixed pep8 issue [ci skip]
py
diff --git a/numina/pipeline.py b/numina/pipeline.py index <HASH>..<HASH> 100644 --- a/numina/pipeline.py +++ b/numina/pipeline.py @@ -33,6 +33,7 @@ _logger = logging.getLogger('numina') _pipelines = {} class Pipeline(object): + '''A pipeline.''' def __init__(self, name, version, recipes): self.nam...
More docs for new functions in pipeline.py
py
diff --git a/nidmresults/objects/generic.py b/nidmresults/objects/generic.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/generic.py +++ b/nidmresults/objects/generic.py @@ -98,7 +98,7 @@ class CoordinateSpace(NIDMObject): units = ["mm", "mm", "mm"] self.number_of_dimensions = numdim - ...
Do not rely on testing type str (could be unicode)
py
diff --git a/test/test_shunt.py b/test/test_shunt.py index <HASH>..<HASH> 100644 --- a/test/test_shunt.py +++ b/test/test_shunt.py @@ -61,7 +61,8 @@ class MongoTest(unittest.TestCase): os.makedirs(dirname) self.temp_dirs.append(dirname) - options = ['mongod', '--bind_i...
start test mongod instance with --smallfiles so mongo doesn't demand 3 GiB free in /tmp
py
diff --git a/release/.buildkite/build_pipeline.py b/release/.buildkite/build_pipeline.py index <HASH>..<HASH> 100644 --- a/release/.buildkite/build_pipeline.py +++ b/release/.buildkite/build_pipeline.py @@ -339,7 +339,8 @@ def ask_configuration(): ] + [ "export AUTOMATIC=1", "python3 ...
[release] After buildkite ask step, use RAY_TEST_REPO pipeline (#<I>)
py
diff --git a/pyfritzhome/fritzhome.py b/pyfritzhome/fritzhome.py index <HASH>..<HASH> 100644 --- a/pyfritzhome/fritzhome.py +++ b/pyfritzhome/fritzhome.py @@ -232,7 +232,8 @@ class FritzhomeDevice(object): TEMPERATURE_MASK = 0x100 SWITCH_MASK = 0x200 DECT_REPEATER_MASK = 0x400 - UNKNOWN2_MASK = 0x800 ...
initial work for new fritzos support
py
diff --git a/src/qinfer/examples/noisycoin_example.py b/src/qinfer/examples/noisycoin_example.py index <HASH>..<HASH> 100644 --- a/src/qinfer/examples/noisycoin_example.py +++ b/src/qinfer/examples/noisycoin_example.py @@ -283,10 +283,10 @@ if __name__ == "__main__": if do_smc: plt.loglog(avg_erro...
Trivial change to plotting labels and colors to match paper
py
diff --git a/gflags/flag.py b/gflags/flag.py index <HASH>..<HASH> 100644 --- a/gflags/flag.py +++ b/gflags/flag.py @@ -51,6 +51,7 @@ class Flag(object): .parser - an ArgumentParser object; .serializer - an ArgumentSerializer object; .allow_override - the flag may be redefined without raising an error; + ...
Automated rollback of changelist <I>. *** Reason for rollback *** Introduce flag.allow_override_cpp. Delay app.py switch to CLIF-first flags/logging for later. *** Original change description *** Automated rollback of changelist <I>. *** Reason for rollback *** Broke embedding project. *** Original change descri...
py
diff --git a/pygccxml/parser/project_reader.py b/pygccxml/parser/project_reader.py index <HASH>..<HASH> 100644 --- a/pygccxml/parser/project_reader.py +++ b/pygccxml/parser/project_reader.py @@ -522,7 +522,8 @@ class project_reader_t(object): name = decl_wrapper_type.declaration._name ...
Pep8 fix, line too long
py
diff --git a/photutils/detection/tests/test_core.py b/photutils/detection/tests/test_core.py index <HASH>..<HASH> 100644 --- a/photutils/detection/tests/test_core.py +++ b/photutils/detection/tests/test_core.py @@ -324,3 +324,4 @@ class TestMakeSourceMask(object): sigma = 2 * gaussian_fwhm_to_sigma ke...
Add missing line in test for make_source_mask
py
diff --git a/contrib/opencensus-ext-django/setup.py b/contrib/opencensus-ext-django/setup.py index <HASH>..<HASH> 100644 --- a/contrib/opencensus-ext-django/setup.py +++ b/contrib/opencensus-ext-django/setup.py @@ -39,7 +39,7 @@ setup( include_package_data=True, long_description=open('README.rst').read(), ...
support all versions of django <I> (#<I>)
py
diff --git a/odl/util/phantom.py b/odl/util/phantom.py index <HASH>..<HASH> 100644 --- a/odl/util/phantom.py +++ b/odl/util/phantom.py @@ -130,15 +130,16 @@ def _shepp_logan_3d(space): # Find the pixels within the ellipse scales = [1 / a2, 1 / b2, 1 / c2] - mat = [[cpsi*cphi-ctheta*sphi*spsi,...
MAINT: pep8 fix in phantom.py
py
diff --git a/cassandra/query.py b/cassandra/query.py index <HASH>..<HASH> 100644 --- a/cassandra/query.py +++ b/cassandra/query.py @@ -737,11 +737,11 @@ class BatchStatement(Statement): def add_all(self, statements, parameters): """ Adds a sequence of :class:`.Statement` objects and a matching se...
fix BatchStatement.add_all to pass individual params instead of the whole list
py
diff --git a/satpy/scene.py b/satpy/scene.py index <HASH>..<HASH> 100644 --- a/satpy/scene.py +++ b/satpy/scene.py @@ -743,8 +743,8 @@ class Scene(MetadataObject): try: slice_x, slice_y = source_area.get_area_slices(destination_area) source_area = source_area[slice_y, slic...
Add sanity check assertion in Scene for slicing results
py
diff --git a/gui/controls/listview.py b/gui/controls/listview.py index <HASH>..<HASH> 100644 --- a/gui/controls/listview.py +++ b/gui/controls/listview.py @@ -195,6 +195,12 @@ class ListView(Control): self.wx_obj.SetColumnWidth(i, colwidth) self.wx_obj.resizeLastColumn(self.wx_obj.GetColu...
ListView: added support to remove a item
py
diff --git a/bcbio/variation/coverage_experimental.py b/bcbio/variation/coverage_experimental.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/coverage_experimental.py +++ b/bcbio/variation/coverage_experimental.py @@ -204,7 +204,7 @@ def variants(data): "-R {ref_file} " ...
Annotate depth variant during coverage report.
py
diff --git a/salt/modules/apt.py b/salt/modules/apt.py index <HASH>..<HASH> 100644 --- a/salt/modules/apt.py +++ b/salt/modules/apt.py @@ -267,7 +267,7 @@ def install(name=None, if version is None: targets.append(param) else: - targets.append('{0}={1}'.format(pa...
Enclose pkg targets in quotes (apt) This will prevent salt from redirecting output if comparison operators are used in version specifications.
py
diff --git a/ddsc/cmdparser.py b/ddsc/cmdparser.py index <HASH>..<HASH> 100644 --- a/ddsc/cmdparser.py +++ b/ddsc/cmdparser.py @@ -281,10 +281,10 @@ class CommandParser(object): """ description = "Uploads local files and folders to a remote host." upload_parser = self.subparsers.add_parser('u...
upload --dry-run before project name
py
diff --git a/telemetry/telemetry/core/browser.py b/telemetry/telemetry/core/browser.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/core/browser.py +++ b/telemetry/telemetry/core/browser.py @@ -119,8 +119,6 @@ class Browser(object): result[child_process_type_key][k] += v else: re...
Remove assert that there be only one GPU process as this is no longer the case. BUG=<I> NOTRY=True Review URL: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -26,8 +26,8 @@ dist = setup( version='2.0.1', description='Cross-platform uptime library', long_description='''\ -This module provides a cross-platform way to retrieve system uptime. -Supported platforms are Lin...
Updated long description to reflect wider support.
py
diff --git a/gns3server/handlers/api/controller/project_handler.py b/gns3server/handlers/api/controller/project_handler.py index <HASH>..<HASH> 100644 --- a/gns3server/handlers/api/controller/project_handler.py +++ b/gns3server/handlers/api/controller/project_handler.py @@ -456,8 +456,9 @@ class ProjectHandler: ...
Fix a rare crash when writing a file on a remote server Fix #<I>
py
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py index <HASH>..<HASH> 100644 --- a/saltcloud/cloud.py +++ b/saltcloud/cloud.py @@ -532,6 +532,9 @@ class Map(Cloud): tvm['map_minion'] = miniondict[name]['minion'] if 'volumes' in miniondict[name]: ...
Copy all options from the map to the profile
py
diff --git a/ReText/editor.py b/ReText/editor.py index <HASH>..<HASH> 100644 --- a/ReText/editor.py +++ b/ReText/editor.py @@ -6,17 +6,17 @@ class ReTextEdit(QTextEdit): self.parent = parent self.setFont(monofont) self.setAcceptRichText(False) + self.marginx = (self.cursorRect(self.cursorForPosition(QPoint())...
Save the marginx position to avoid recalculating it on every redraw Also, adjust the line color slightly
py
diff --git a/spyderlib/widgets/dataframeeditor.py b/spyderlib/widgets/dataframeeditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/dataframeeditor.py +++ b/spyderlib/widgets/dataframeeditor.py @@ -40,7 +40,6 @@ _bool_false = ['false', '0'] LARGE_NROWS = 1e5 -LARGE_SIZE = 5e5 def bool_false_che...
Variable Explorer: Remove unnecessary warning about big DataFrames - Big DataFrames work now as fast as small ones.
py
diff --git a/muttdown/main.py b/muttdown/main.py index <HASH>..<HASH> 100644 --- a/muttdown/main.py +++ b/muttdown/main.py @@ -122,7 +122,8 @@ def smtp_connection(c): def main(): - parser = argparse.ArgumentParser(version='%s %s' % (__name__, __version__)) + parser = argparse.ArgumentParser(prog='muttdown') ...
move version logic to fix python <I> compatibility (fixes #<I>)
py
diff --git a/django_extensions/admin/__init__.py b/django_extensions/admin/__init__.py index <HASH>..<HASH> 100644 --- a/django_extensions/admin/__init__.py +++ b/django_extensions/admin/__init__.py @@ -5,6 +5,7 @@ import six import operator from six.moves import reduce +import django from django.http import HttpR...
add backwards compatibility for django < <I> model._meta.module_name is deprecated in django version <I> and removed in django version <I> and is replaced by It is replaced by model._meta.model_name
py
diff --git a/mythril/interfaces/cli.py b/mythril/interfaces/cli.py index <HASH>..<HASH> 100644 --- a/mythril/interfaces/cli.py +++ b/mythril/interfaces/cli.py @@ -350,7 +350,7 @@ def create_analyzer_parser(analyzer_parser: ArgumentParser): "--create-timeout", type=int, default=10, - he...
Load contracts from the blockchain by default. Renames --no-on-chain-storage-access to --no-onchain-access. This control both storage and contract code loading.
py
diff --git a/python/example.py b/python/example.py index <HASH>..<HASH> 100644 --- a/python/example.py +++ b/python/example.py @@ -6,7 +6,8 @@ def container_with_port(): print('hello container_with_port') -@containerize('brendanburns', options={'name': 'testcontainer', 'publish': True}) +@containerize( + 'b...
Fixes #<I>. pycodestyle issue in python example (#<I>)
py
diff --git a/src/diamond/handler/archive.py b/src/diamond/handler/archive.py index <HASH>..<HASH> 100644 --- a/src/diamond/handler/archive.py +++ b/src/diamond/handler/archive.py @@ -31,8 +31,8 @@ class ArchiveHandler(Handler): # Create Archive Log Handler handler = logging.handlers.TimedRotatingFileH...
make archive handler able to rollover the files using other type of interval, not just midnight
py
diff --git a/apitools/base/py/testing/mock.py b/apitools/base/py/testing/mock.py index <HASH>..<HASH> 100644 --- a/apitools/base/py/testing/mock.py +++ b/apitools/base/py/testing/mock.py @@ -186,6 +186,7 @@ class _MockedMethod(object): """A mocked API service method.""" def __init__(self, key, mocked_client...
Fixing _MockedMethod so that you can call client.GetMethodsList() when a client is mocked out using mock.Client().Mock().
py
diff --git a/gandi/cli/modules/cert.py b/gandi/cli/modules/cert.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/cert.py +++ b/gandi/cli/modules/cert.py @@ -239,7 +239,7 @@ class Certificate(GandiModule): cls.call('cert.resend_dcv', oper_id) @classmethod - def create(cls, csr, duration, package...
Create and process_csr methods do not need all params, default some.
py
diff --git a/jaraco/util/dictlib.py b/jaraco/util/dictlib.py index <HASH>..<HASH> 100644 --- a/jaraco/util/dictlib.py +++ b/jaraco/util/dictlib.py @@ -119,7 +119,7 @@ def dict_map(function, dictionary): >>> d == dict(a=2,b=3) True """ - return dict(zip(dictionary.keys(), map(function, dictionary.values()))) + ret...
Cleaned up DictMap Improved doctest on DictAdapter
py